Changeset 155101 in webkit


Ignore:
Timestamp:
Sep 5, 2013, 12:18:58 AM (12 years ago)
Author:
fpizlo@apple.com
Message:

Unreviewed, don't rely on File::Slurp. This fixes part #1 of Linux bot breakage.

  • Scripts/run-javascriptcore-tests:

(readAllLines):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r155098 r155101  
     12013-09-05  Filip Pizlo  <fpizlo@apple.com>
     2
     3        Unreviewed, don't rely on File::Slurp. This fixes part #1 of Linux bot breakage.
     4
     5        * Scripts/run-javascriptcore-tests:
     6        (readAllLines):
     7
    182013-09-04  Filip Pizlo  <fpizlo@apple.com>
    29
  • trunk/Tools/Scripts/run-javascriptcore-tests

    r155098 r155101  
    3232
    3333use strict;
    34 use File::Slurp;
    3534use FindBin;
    3635use Getopt::Long qw(:config pass_through);
     
    217216}
    218217
     218sub readAllLines
     219{
     220    my ($filename) = @_;
     221    my @array = ();
     222    eval {
     223        open FILE, $filename or die;
     224        while (<FILE>) {
     225            push @array, $_;
     226        }
     227        close FILE;
     228    };
     229    return @array;
     230}
     231
    219232sub printThingsFound
    220233{
     
    229242}
    230243
    231 my @fastJSFailList = eval { read_file($fastJSResultsDir . "/failed") };
    232 my @fastJSCrashList = eval { read_file($fastJSResultsDir . "/crashed") };
     244my @fastJSFailList = readAllLines($fastJSResultsDir . "/failed");
     245my @fastJSCrashList = readAllLines($fastJSResultsDir . "/crashed");
    233246my $numJSFailures = @fastJSFailList;
    234247my $numJSCrashes = @fastJSCrashList;
Note: See TracChangeset for help on using the changeset viewer.