Fix proposed by Mitz Pettel, reviewed by Darin.
[WebKit-https.git] / WebKitTools / Scripts / run-webkit-tests
index 5df06e3c4f1376ae268667cb693adc2b6d9a569d..c0ec5654e9eb9b3abc236e7468e00a0ff09d6131 100755 (executable)
@@ -309,11 +309,11 @@ for my $test (@tests) {
             $testPath =~ s|/cygdrive/c|c:|;
             $testPath =~ s|/|\\|g;
         } 
-        print OUT "$testPath\n";
+        print OUT File::Spec->canonpath("$testPath") . "\n";
     } else {
         openHTTPDIfNeeded();
         
-        my $path = $test;
+        my $path = File::Spec->canonpath($test);
         $path =~ s/^http\/tests\///;
         print OUT "http://127.0.0.1:$httpdPort/$path\n";
     }