Fix incorrectly inverted condition in test for non-TimeSCons entries.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Nov 2009 01:58:03 +0000 (01:58 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Nov 2009 01:58:03 +0000 (01:58 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4474 fdb21ef1-2011-0410-befe-b5e4ea1792b1

QMTest/TestSCons.py

index cf8e3576dd86c320d182f29779ff559cf491bb46..ab014a9fd1e1503e696ccb5b1199ea702b381f45 100644 (file)
@@ -1073,9 +1073,9 @@ class TimeSCons(TestSCons):
             # TODO(1.5)
             #dirs = [ d for d in dirs if not d.startswith('TimeSCons-') ]
             #files = [ f for f in files if not f.startswith('TimeSCons-') ]
-            timescons_entries = lambda s: s.startswith('TimeSCons-')
-            dirs = filter(timescons_entries, dirs)
-            files = filter(timescons_entries, files)
+            not_timescons_entries = lambda s: not s.startswith('TimeSCons-')
+            dirs = filter(not_timescons_entries, dirs)
+            files = filter(not_timescons_entries, files)
             for dirname in dirs:
                 source = os.path.join(root, dirname)
                 destination = source.replace(source_dir, dest_dir)