Title: [232855] trunk/Tools
Revision
232855
Author
[email protected]
Date
2018-06-14 14:44:01 -0700 (Thu, 14 Jun 2018)

Log Message

[test262-runner] Improve displayed settings, use rel paths
https://bugs.webkit.org/show_bug.cgi?id=186626

Patch by Leo Balter <[email protected]> on 2018-06-14
Reviewed by Michael Saboff.

Use relative paths for the information printed in the settings summary after calling the Test262 Runner. This provides a cleaner summary that is easier to read and consume.
* Scripts/test262/Runner.pm:
(processCLI):
(getBuildPath):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (232854 => 232855)


--- trunk/Tools/ChangeLog	2018-06-14 21:41:07 UTC (rev 232854)
+++ trunk/Tools/ChangeLog	2018-06-14 21:44:01 UTC (rev 232855)
@@ -1,5 +1,17 @@
 2018-06-14  Leo Balter  <[email protected]>
 
+        [test262-runner] Improve displayed settings, use rel paths
+        https://bugs.webkit.org/show_bug.cgi?id=186626
+
+        Reviewed by Michael Saboff.
+
+        Use relative paths for the information printed in the settings summary after calling the Test262 Runner. This provides a cleaner summary that is easier to read and consume.
+        * Scripts/test262/Runner.pm:
+        (processCLI):
+        (getBuildPath):
+
+2018-06-14  Leo Balter  <[email protected]>
+
         Test262-Runner: Add more information in the summarized stats
         https://bugs.webkit.org/show_bug.cgi?id=185749
 

Modified: trunk/Tools/Scripts/test262/Runner.pm (232854 => 232855)


--- trunk/Tools/Scripts/test262/Runner.pm	2018-06-14 21:41:07 UTC (rev 232854)
+++ trunk/Tools/Scripts/test262/Runner.pm	2018-06-14 21:44:01 UTC (rev 232855)
@@ -246,9 +246,9 @@
 
     $max_process ||= getProcesses();
 
-    print "\n-------------------------Settings------------------------\n"
-        . "Test262 Dir: $test262Dir\n"
-        . "JSC: $JSC\n"
+    print "\nSettings:\n"
+        . "Test262 Dir: " . abs2rel($test262Dir) . "\n"
+        . "JSC: " . abs2rel($JSC) . "\n"
         . "Child Processes: $max_process\n";
 
     print "Test timeout: $timeout\n" if $timeout;
@@ -255,15 +255,15 @@
     print "DYLD_FRAMEWORK_PATH: $DYLD_FRAMEWORK_PATH\n" if $DYLD_FRAMEWORK_PATH;
     print "Features to include: " . join(', ', @features) . "\n" if @features;
     print "Paths: " . join(', ', @cliTestDirs) . "\n" if @cliTestDirs;
-    print "Config file: $configFile\n" if $config;
-    print "Expectations file: $expectationsFile\n" if $expect;
-    print "Results file: $resultsFile\n" if $stats || $failingOnly;
+    print "Config file: " . abs2rel($configFile) . "\n" if $config;
+    print "Expectations file: " . abs2rel($expectationsFile) . "\n" if $expect;
+    print "Results file: ". abs2rel($resultsFile) . "\n" if $stats || $failingOnly;
 
     print "Running only the latest imported files\n" if $latestImport;
 
     print "Verbose mode\n" if $verbose;
 
-    print "--------------------------------------------------------\n\n";
+    print "---\n\n";
 }
 
 
@@ -529,8 +529,8 @@
         $jsc = $jscDir . '/_javascript_Core.framework/Resources/jsc' if (! -e $jsc);
         $jsc = $jscDir . '/bin/jsc' if (! -e $jsc);
 
-        # Sets the Env DYLD_FRAMEWORK_PATH
-        $DYLD_FRAMEWORK_PATH = dirname($jsc) if (-e $jsc);
+        # Sets the Env DYLD_FRAMEWORK_PATH, abs_path will remove any extra '/' character
+        $DYLD_FRAMEWORK_PATH = abs_path(dirname($jsc)) if (-e $jsc);
     }
 
     if (! $jsc || ! -e $jsc) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to