build: only add dependency for valgrind supported hosts
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Mon, 28 Nov 2016 12:14:33 +0000 (13:14 +0100)
committerPhil Coval <philippe.coval@osg.samsung.com>
Mon, 28 Nov 2016 15:24:11 +0000 (15:24 +0000)
Windows is confused with implicit .exe suffix ie:

  scons: *** [out\windows\...\utresource\csdk\connectivity\test\catests] \
  Explicit dependency ...\utresource\csdk\connectivity\test\catests' \
  not found, needed by target \
  ...

Change-Id: I010eb13f7904cba510e492b73be1caeeb0061edd
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14849
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
tools/scons/RunTest.py

index 91375e6..f814bd5 100644 (file)
@@ -63,6 +63,6 @@ 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)
 
-    env.Depends('ut' + test , os.path.join(build_dir, test))
+        env.Depends('ut' + test , os.path.join(build_dir, test))
     ut = env.Command('ut' + test, None, test_cmd)
     env.AlwaysBuild('ut' + test)