diff --git a/v2/test/BoostBuild.py b/v2/test/BoostBuild.py index c5b4c59a6..239f76975 100644 --- a/v2/test/BoostBuild.py +++ b/v2/test/BoostBuild.py @@ -370,7 +370,7 @@ class Tester(TestCmd.TestCmd): if condition and dump_stdio: self.dump_stdio() - if '--preserve' in sys.argv: + if condition and '--preserve' in sys.argv: print print "*** Copying the state of working dir into 'failed_test' ***" print