Changeset 231848 in webkit


Ignore:
Timestamp:
May 16, 2018 9:11:09 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

test262/Runner.pm: save to supplied expectation file if supplied
https://bugs.webkit.org/show_bug.cgi?id=185660

Patch by Valerie R Young <valerie@bocoup.com> on 2018-05-16
Reviewed by Michael Saboff.

  • Scripts/test262/Runner.pm:

(processCLI):
(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r231807 r231848  
     12018-05-16  Valerie R Young  <valerie@bocoup.com>
     2
     3        test262/Runner.pm: save to supplied expectation file if supplied
     4        https://bugs.webkit.org/show_bug.cgi?id=185660
     5
     6        Reviewed by Michael Saboff.
     7
     8        * Scripts/test262/Runner.pm:
     9        (processCLI):
     10        (main):
     11
    1122018-05-15  Ryan Haddad  <ryanhaddad@apple.com>
    213
  • trunk/Tools/Scripts/test262/Runner.pm

    r231775 r231848  
    209209    }
    210210
    211     if (! $ignoreExpectations && $specifiedExpectationsFile) {
     211    if ($specifiedExpectationsFile) {
    212212        $expectationsFile = abs_path($specifiedExpectationsFile);
    213         if (! -e $expectationsFile) {
    214             die "Error: Supplied expectations file $expectationsFile does not exist!";
     213        if (! -e $expectationsFile && ! $ignoreExpectations) {
     214            print("Warning: Supplied expectations file $expectationsFile does"
     215                  . " not exist. Running tests without expectation file.\n");
    215216        }
    216217    }
     
    390391        print $failcount . " tests failed\n";
    391392    } else {
    392         print $failcount . " expected tests failed\n";
     393        print $failcount . " tests failed in total\n";
    393394        print $newfailcount . " tests newly fail\n";
    394395        print $newpasscount . " tests newly pass\n";
     
    928929=item B<--expectations, -e>
    929930
    930 Specify a expectations file.  If not provided, script will load local JSTests/test262/expectations.yaml
     931Specify a expectations file for loading and saving.  If not provided, script will load and save to JSTests/test262/expectations.yaml.
    931932
    932933=item B<--ignore-expectations, -x>
Note: See TracChangeset for help on using the changeset viewer.