From 3f5b8e1fe0d5854653e57fd8c332db4e45236380 Mon Sep 17 00:00:00 2001 From: George Nash Date: Fri, 12 Aug 2016 14:49:27 -0700 Subject: [PATCH] IOT-1213 Fix build failure for test build When building with TEST=1 the build failed reporting multiple environments were trying to build the target 'ut' This was a hardcoded dummy target that is used to force the unit tests to run. The dummy target was switched from the hardcoded 'ut' name to use the name of the unit test so two environments don't think they are building the same target. Change-Id: I9ac35752f0a1c7acf902bf0087a212833bf5a6a5 Signed-off-by: George Nash Reviewed-on: https://gerrit.iotivity.org/gerrit/10443 Tested-by: jenkins-iotivity Reviewed-by: Ziran Sun Reviewed-by: Jon A. Cruz --- tools/scons/RunTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scons/RunTest.py b/tools/scons/RunTest.py index 1a429f6..d10a177 100644 --- a/tools/scons/RunTest.py +++ b/tools/scons/RunTest.py @@ -63,5 +63,5 @@ def run_test(env, xml_file, test): # Set up to run the test under Valgrind. test_cmd = '%s valgrind --leak-check=full --suppressions=%s --xml=yes --xml-file=%s %s' % (valgrind_environment, suppression_file, xml_file, test_cmd) - ut = env.Command('ut', None, test_cmd) - env.AlwaysBuild('ut') + ut = env.Command('ut' + test, None, test_cmd) + env.AlwaysBuild('ut' + test) -- 2.7.4