From 15101961bb7be1e92304539e4cb16c711087ff84 Mon Sep 17 00:00:00 2001 From: Alexander Kozhinov Date: Tue, 11 Apr 2023 15:16:24 +0200 Subject: [PATCH] test_package: conanfile.py: update for conan v2 usage Signed-off-by: Alexander Kozhinov --- recipes/nodejs/all/test_package/conanfile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/nodejs/all/test_package/conanfile.py b/recipes/nodejs/all/test_package/conanfile.py index 42e6935fc89c3f..27b55bec7f7a7d 100644 --- a/recipes/nodejs/all/test_package/conanfile.py +++ b/recipes/nodejs/all/test_package/conanfile.py @@ -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)