From 57afd10abc4922d9789196530fba9d0ca6a3aa5b Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Wed, 19 Sep 2012 08:11:42 +0200 Subject: [PATCH] stupid race condition, issue #1200 --- waflib/Tools/waf_unit_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/waf_unit_test.py b/waflib/Tools/waf_unit_test.py index 92c84786..e6879943 100644 --- a/waflib/Tools/waf_unit_test.py +++ b/waflib/Tools/waf_unit_test.py @@ -81,7 +81,6 @@ class utest(Task.Task): fu = getattr(self.generator.bld, 'all_test_paths') except AttributeError: fu = os.environ.copy() - self.generator.bld.all_test_paths = fu lst = [] for g in self.generator.bld.groups: @@ -99,6 +98,7 @@ class utest(Task.Task): add_path(fu, lst, 'LD_LIBRARY_PATH') else: add_path(fu, lst, 'LD_LIBRARY_PATH') + self.generator.bld.all_test_paths = fu cwd = getattr(self.generator, 'ut_cwd', '') or self.inputs[0].parent.abspath()