Changeset 232855 in webkit


Ignore:
Timestamp:
Jun 14, 2018 2:44:01 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Leo Balter <Leo Balter> 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):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r232854 r232855  
     12018-06-14  Leo Balter  <leonardo.balter@gmail.com>
     2
     3        [test262-runner] Improve displayed settings, use rel paths
     4        https://bugs.webkit.org/show_bug.cgi?id=186626
     5
     6        Reviewed by Michael Saboff.
     7
     8        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.
     9        * Scripts/test262/Runner.pm:
     10        (processCLI):
     11        (getBuildPath):
     12
    1132018-06-14  Leo Balter  <leonardo.balter@gmail.com>
    214
  • trunk/Tools/Scripts/test262/Runner.pm

    r232854 r232855  
    247247    $max_process ||= getProcesses();
    248248
    249     print "\n-------------------------Settings------------------------\n"
    250         . "Test262 Dir: $test262Dir\n"
    251         . "JSC: $JSC\n"
     249    print "\nSettings:\n"
     250        . "Test262 Dir: " . abs2rel($test262Dir) . "\n"
     251        . "JSC: " . abs2rel($JSC) . "\n"
    252252        . "Child Processes: $max_process\n";
    253253
     
    256256    print "Features to include: " . join(', ', @features) . "\n" if @features;
    257257    print "Paths: " . join(', ', @cliTestDirs) . "\n" if @cliTestDirs;
    258     print "Config file: $configFile\n" if $config;
    259     print "Expectations file: $expectationsFile\n" if $expect;
    260     print "Results file: $resultsFile\n" if $stats || $failingOnly;
     258    print "Config file: " . abs2rel($configFile) . "\n" if $config;
     259    print "Expectations file: " . abs2rel($expectationsFile) . "\n" if $expect;
     260    print "Results file: ". abs2rel($resultsFile) . "\n" if $stats || $failingOnly;
    261261
    262262    print "Running only the latest imported files\n" if $latestImport;
     
    264264    print "Verbose mode\n" if $verbose;
    265265
    266     print "--------------------------------------------------------\n\n";
     266    print "---\n\n";
    267267}
    268268
     
    530530        $jsc = $jscDir . '/bin/jsc' if (! -e $jsc);
    531531
    532         # Sets the Env DYLD_FRAMEWORK_PATH
    533         $DYLD_FRAMEWORK_PATH = dirname($jsc) if (-e $jsc);
     532        # Sets the Env DYLD_FRAMEWORK_PATH, abs_path will remove any extra '/' character
     533        $DYLD_FRAMEWORK_PATH = abs_path(dirname($jsc)) if (-e $jsc);
    534534    }
    535535
Note: See TracChangeset for help on using the changeset viewer.