Title: [231360] trunk/Tools
Revision
231360
Author
[email protected]
Date
2018-05-04 10:36:34 -0700 (Fri, 04 May 2018)

Log Message

Test262-Runner: place the processCLI inside the main call
https://bugs.webkit.org/show_bug.cgi?id=185304

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

* Scripts/test262/Runner.pm:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (231359 => 231360)


--- trunk/Tools/ChangeLog	2018-05-04 17:32:48 UTC (rev 231359)
+++ trunk/Tools/ChangeLog	2018-05-04 17:36:34 UTC (rev 231360)
@@ -1,3 +1,13 @@
+2018-05-04  Leo Balter  <[email protected]>
+
+        Test262-Runner: place the processCLI inside the main call
+        https://bugs.webkit.org/show_bug.cgi?id=185304
+
+        Reviewed by Michael Saboff.
+
+        * Scripts/test262/Runner.pm:
+        (main):
+
 2018-05-04  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Epiphany (GNOME Web) says "Error downloading: Service Unavailable." when trying to download an image from discogs.com

Modified: trunk/Tools/Scripts/test262/Runner.pm (231359 => 231360)


--- trunk/Tools/Scripts/test262/Runner.pm	2018-05-04 17:32:48 UTC (rev 231359)
+++ trunk/Tools/Scripts/test262/Runner.pm	2018-05-04 17:36:34 UTC (rev 231360)
@@ -92,20 +92,12 @@
 my @files;
 
 my $tempdir = tempdir();
+my ($deffh, $deffile) = getTempFile();
 
-my @default_harnesses = (
-    "$harnessDir/sta.js",
-    "$harnessDir/assert.js",
-    "$harnessDir/doneprintHandle.js",
-    "$Bin/agent.js"
-);
+my @default_harnesses;
 
-my ($deffh, $deffile) = getTempFile();
-print $deffh getHarness(<@default_harnesses>);
-
 my $startTime = time();
 
-processCLI();
 main();
 
 sub processCLI {
@@ -223,7 +215,16 @@
 }
 
 sub main {
+    processCLI();
 
+    @default_harnesses = (
+        "$harnessDir/sta.js",
+        "$harnessDir/assert.js",
+        "$harnessDir/doneprintHandle.js",
+        "$Bin/agent.js"
+    );
+    print $deffh getHarness(<@default_harnesses>);
+
     # If not commandline test path supplied, use the root directory of all tests.
     push(@cliTestDirs, 'test') if not @cliTestDirs;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to