[GTK] Don't run the tests with jhbuild wrapper if it's already running under jhbuild
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 15:54:34 +0000 (15:54 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 15:54:34 +0000 (15:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=89435

Reviewed by Martin Robinson.

* Scripts/new-run-webkit-tests: Don't run the tests with the
jhbuild wrapper if there isn't a Dependencies directory inside the
build directory.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121681 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/new-run-webkit-tests

index ad46cf3..b56a0c8 100644 (file)
@@ -1,3 +1,14 @@
+2012-07-02  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK] Don't run the tests with jhbuild wrapper if it's already running under jhbuild
+        https://bugs.webkit.org/show_bug.cgi?id=89435
+
+        Reviewed by Martin Robinson.
+
+        * Scripts/new-run-webkit-tests: Don't run the tests with the
+        jhbuild wrapper if there isn't a Dependencies directory inside the
+        build directory.
+
 2012-06-29  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
 
         [Qt] Simplify detection of non-installed module file
index 1c3d3b1..c771fd6 100755 (executable)
@@ -53,7 +53,7 @@ if __name__ == '__main__':
     # Wrap the NRWT process in the jhbuild environment so DRT or WKTR
     # doesn't need to do it and their process id as reported by
     # subprocess.Popen is not jhbuild's.
-    if '--gtk' in sys.argv[1:]:
+    if '--gtk' in sys.argv[1:] and os.path.exists(os.path.join(script_dir, '..', '..', 'WebKitBuild', 'Dependencies')):
         cmd.insert(1, os.path.join(script_dir, '..', 'gtk', 'run-with-jhbuild'))
 
     proc = subprocess.Popen(cmd, env=env)