From a50b380f969b9b5bf10d2617b0bfe90d0215c4df Mon Sep 17 00:00:00 2001 From: atom Date: Mon, 19 Feb 2024 16:02:24 +0300 Subject: [PATCH] Fix testsuite test --- recipes/userver/all/test_package/conanfile.py | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/recipes/userver/all/test_package/conanfile.py b/recipes/userver/all/test_package/conanfile.py index 3781cf9b971fb..74378e67ae659 100644 --- a/recipes/userver/all/test_package/conanfile.py +++ b/recipes/userver/all/test_package/conanfile.py @@ -69,15 +69,16 @@ def test(self): ) self.run(bin_path, env='conanrun') - bin_path = os.path.join( - self.cpp.build.bindirs[0], - 'hello_service', - 'runtests-testsuite-conan-samples-hello_service', - ) - command = ' ' - folder = os.path.join( - self.source_folder, - 'hello_service', - ) - args = [bin_path, '--service-logs-pretty', '-vv', folder] - self.run(command.join(args), env='conanrun') + if self.dependencies[self.tested_reference_str].options.with_testsuite: + bin_path = os.path.join( + self.cpp.build.bindirs[0], + 'hello_service', + 'runtests-testsuite-conan-samples-hello_service', + ) + command = ' ' + folder = os.path.join( + self.source_folder, + 'hello_service', + ) + args = [bin_path, '--service-logs-pretty', '-vv', folder] + self.run(command.join(args), env='conanrun')