Skip to content

Commit

Permalink
test_package: conanfile.py: update for conan v2 usage
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
  • Loading branch information
KozhinovAlexander committed Apr 11, 2023
1 parent ad013a5 commit 1510196
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/nodejs/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import os
from conans import ConanFile, tools
from conan import ConanFile
from conan.tools.build import cross_building


class TestPackageConan(ConanFile):

settings = "os", "arch"
tool_requires = "nodejs/[*]@"

def test(self):
if not tools.cross_building(self):
if not cross_building(self):
self.output.info("Node version:")
self.run("node --version", run_environment=True)

0 comments on commit 1510196

Please sign in to comment.