diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2021-09-07 15:20:59 (GMT) |
---|---|---|
committer | Daniel Moody <daniel.moody@mongodb.com> | 2021-09-08 13:30:47 (GMT) |
commit | 3e172324f2e47581c173e1bd0ae8d8d1237067ae (patch) | |
tree | d89f380d80b779818697866fb324c9c518d6b16e /test | |
parent | e97b156243b38ea86812bc8986f3ef8a639aa3eb (diff) | |
download | SCons-3e172324f2e47581c173e1bd0ae8d8d1237067ae.zip SCons-3e172324f2e47581c173e1bd0ae8d8d1237067ae.tar.gz SCons-3e172324f2e47581c173e1bd0ae8d8d1237067ae.tar.bz2 |
fix test to ensure no callbacks for mkdir actions
Diffstat (limited to 'test')
-rw-r--r-- | test/ninja/mkdir_function_command.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ninja/mkdir_function_command.py b/test/ninja/mkdir_function_command.py index 247181a..8a17623 100644 --- a/test/ninja/mkdir_function_command.py +++ b/test/ninja/mkdir_function_command.py @@ -60,6 +60,7 @@ env.Command('test6/test7', ['test1/test2', 'test0'], Mkdir('$TARGET')) test.run(stdout=None) test.must_contain_all_lines(test.stdout(), ['Generating: build.ninja']) test.must_contain_all(test.stdout(), 'Executing:') +test.must_contain_single_instance_of(test.stdout(), ["scons: Building targets ..."]) test.must_contain_all(test.stdout(), 'ninja%(_exe)s -f' % locals()) test.must_exist([ test.workpath('test0'), @@ -73,12 +74,12 @@ test.must_exist([ test.run(arguments='-c', stdout=None) test.must_contain_all_lines(test.stdout(), [ 'Removed build.ninja']) -os.rmdir('test0') +os.rmdir('test0') os.rmdir('test1/test2') os.rmdir('test1') os.rmdir('test3/test4') os.rmdir('test3') -os.rmdir('test5') +os.rmdir('test5') os.rmdir('test6/test7') os.rmdir('test6') @@ -104,6 +105,7 @@ test.must_not_exist([ # run ninja independently program = test.workpath('run_ninja_env.bat') if IS_WINDOWS else ninja_bin test.run(program=program, stdout=None) +test.must_not_contain_any_line(test.stdout(), ["scons: Building targets ..."]) test.must_exist([ test.workpath('test0'), test.workpath('test1/test2'), |