Title: [197948] trunk/Tools
- Revision
- 197948
- Author
- bb...@apple.com
- Date
- 2016-03-10 12:06:50 -0800 (Thu, 10 Mar 2016)
Log Message
Web Inspector: should be able to run protocol and input generator scripts from any directory
https://bugs.webkit.org/show_bug.cgi?id=155307
Reviewed by Joseph Pecoraro.
* Scripts/webkitpy/inspector/main.py:
(InspectorGeneratorTests.main):
* Scripts/webkitpy/replay/main.py:
(InputGeneratorTests.main):
Compute the current SCM based on the location of the script being executed, not
the $CWD which could be anything. There's rarely a good reason to use $CWD.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (197947 => 197948)
--- trunk/Tools/ChangeLog 2016-03-10 19:41:37 UTC (rev 197947)
+++ trunk/Tools/ChangeLog 2016-03-10 20:06:50 UTC (rev 197948)
@@ -1,3 +1,17 @@
+2016-03-10 Brian Burg <bb...@apple.com>
+
+ Web Inspector: should be able to run protocol and input generator scripts from any directory
+ https://bugs.webkit.org/show_bug.cgi?id=155307
+
+ Reviewed by Joseph Pecoraro.
+
+ * Scripts/webkitpy/inspector/main.py:
+ (InspectorGeneratorTests.main):
+ * Scripts/webkitpy/replay/main.py:
+ (InputGeneratorTests.main):
+ Compute the current SCM based on the location of the script being executed, not
+ the $CWD which could be anything. There's rarely a good reason to use $CWD.
+
2016-03-10 David Kilzer <ddkil...@apple.com>
[iOS] DumpRenderTree crashes when accessing window.testRunner.inspectorTestStubURL
Modified: trunk/Tools/Scripts/webkitpy/inspector/main.py (197947 => 197948)
--- trunk/Tools/Scripts/webkitpy/inspector/main.py 2016-03-10 19:41:37 UTC (rev 197947)
+++ trunk/Tools/Scripts/webkitpy/inspector/main.py 2016-03-10 20:06:50 UTC (rev 197948)
@@ -115,7 +115,7 @@
return passed
def main(self):
- current_scm = detect_scm_system(os.curdir)
+ current_scm = detect_scm_system(os.path.dirname(os.path.abspath(__file__)))
os.chdir(os.path.join(current_scm.checkout_root, 'Source'))
all_tests_passed = True
Modified: trunk/Tools/Scripts/webkitpy/replay/main.py (197947 => 197948)
--- trunk/Tools/Scripts/webkitpy/replay/main.py 2016-03-10 19:41:37 UTC (rev 197947)
+++ trunk/Tools/Scripts/webkitpy/replay/main.py 2016-03-10 20:06:50 UTC (rev 197948)
@@ -115,7 +115,7 @@
return passed
def main(self):
- current_scm = detect_scm_system(os.curdir)
+ current_scm = detect_scm_system(os.path.dirname(os.path.abspath(__file__)))
os.chdir(os.path.join(current_scm.checkout_root, 'Source'))
all_tests_passed = True
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes