Title: [227573] trunk/Websites/perf.webkit.org
Revision
227573
Author
dewei_...@apple.com
Date
2018-01-24 14:35:39 -0800 (Wed, 24 Jan 2018)

Log Message

Check existence of 'node_modules_dir' before creating it.
https://bugs.webkit.org/show_bug.cgi?id=182040

Reviewed by Aakash Jain.

Fix the bug introduced in r227395.

* tools/run-tests.py: Added directory existence check.

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (227572 => 227573)


--- trunk/Websites/perf.webkit.org/ChangeLog	2018-01-24 22:26:17 UTC (rev 227572)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2018-01-24 22:35:39 UTC (rev 227573)
@@ -1,3 +1,14 @@
+2018-01-24  Dewei Zhu  <dewei_...@apple.com>
+
+        Check existence of 'node_modules_dir' before creating it.
+        https://bugs.webkit.org/show_bug.cgi?id=182040
+
+        Reviewed by Aakash Jain.
+
+        Fix the bug introduced in r227395.
+
+        * tools/run-tests.py: Added directory existence check.
+
 2018-01-22  Dewei Zhu  <dewei_...@apple.com>
 
         Fix the bug that 'TestGroupResultsViewer' creates unnecessary rows.

Modified: trunk/Websites/perf.webkit.org/tools/run-tests.py (227572 => 227573)


--- trunk/Websites/perf.webkit.org/tools/run-tests.py	2018-01-24 22:26:17 UTC (rev 227572)
+++ trunk/Websites/perf.webkit.org/tools/run-tests.py	2018-01-24 22:35:39 UTC (rev 227573)
@@ -10,7 +10,8 @@
     root_dir = os.path.abspath(os.path.join(tools_dir, '..'))
     node_modules_dir = os.path.join(root_dir, 'node_modules')
 
-    os.makedirs(node_modules_dir)
+    if not os.path.exists(node_modules_dir):
+        os.makedirs(node_modules_dir)
     packages = ['mocha', 'pg', 'form-data']
     for package_name in packages:
         target_dir = os.path.join(node_modules_dir, package_name)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to