File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
examples/tools/system/package_manager Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313confs = ["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
1819out = run ("conan create . {}" .format (" " .join (["-c " + conf for conf in confs ])))
1920
2223
2324print ("- Consuming Conan package ncurses/system -" )
2425
25-
2626out = 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
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments