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 <[email protected]>
  • Loading branch information
KozhinovAlexander committed Apr 11, 2023
1 parent 0dd907b commit f45d3ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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)
self.run("node --version")

0 comments on commit f45d3ea

Please sign in to comment.