Skip to content

Commit 950af44

Browse files
committed
Avoid interactive command on CI
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 4326fc1 commit 950af44

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/tools/system/package_manager/ci_test_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
confs = ["tools.system.package_manager:mode=install",
1414
"tools.system.package_manager:sudo=true",
1515
"tools.build:verbosity=verbose",
16-
"tools.compilation:verbosity=verbose"]
16+
"tools.compilation:verbosity=verbose",
17+
"user.examples.system_package:interactive=false"]
1718

1819
out = run("conan create . {}".format(" ".join(["-c " + conf for conf in confs])))
1920

@@ -22,7 +23,6 @@
2223

2324
print("- Consuming Conan package ncurses/system -")
2425

25-
2626
out = run("conan build consumer/ --name=ncurses-version --version=0.1.0 {}".format(" ".join(["-c " + conf for conf in confs])))
2727

28-
assert "Conan 2.x Examples - Installed NCurses version" in out
28+
assert "Conan: Target declared 'ncurses::ncurses'" in out

examples/tools/system/package_manager/consumer/conanfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ def build(self):
2222
cmake.configure()
2323
cmake.build()
2424

25-
self.run(os.path.join(self.build_folder, "ncurses_version"), env="conanrun")
25+
if self.conf.get("user.examples.system_package:interactive", check_type=bool, default=True):
26+
self.run(os.path.join(self.build_folder, "ncurses_version"), env="conanrun")

0 commit comments

Comments
 (0)