Changeset 208644 in webkit


Ignore:
Timestamp:
Nov 12, 2016, 12:23:55 AM (9 years ago)
Author:
mitz@apple.com
Message:

run-safari does not work for open source contributors
https://bugs.webkit.org/show_bug.cgi?id=164667
<rdar://problem/29229894>

Reviewed by Joseph Pecoraro.

  • Scripts/run-api-tests:

(archCommandLineArgumentsForRestrictedEnvironmentVariables): Moved from here…

  • Scripts/webkitdirs.pm:

(archCommandLineArgumentsForRestrictedEnvironmentVariables): …to here
(runMacWebKitApp): Have arch(1) carry the DYLD_* variables we set in our environmet over

to the environment of the app being run.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r208635 r208644  
     12016-11-12  Dan Bernstein  <mitz@apple.com>
     2
     3        run-safari does not work for open source contributors
     4        https://bugs.webkit.org/show_bug.cgi?id=164667
     5        <rdar://problem/29229894>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        * Scripts/run-api-tests:
     10        (archCommandLineArgumentsForRestrictedEnvironmentVariables): Moved from here…
     11        * Scripts/webkitdirs.pm:
     12        (archCommandLineArgumentsForRestrictedEnvironmentVariables): …to here
     13        (runMacWebKitApp): Have arch(1) carry the DYLD_* variables we set in our environmet over
     14          to the environment of the app being run.
     15
    1162016-11-11  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Tools/Scripts/run-api-tests

    r204194 r208644  
    389389}
    390390
    391 sub archCommandLineArgumentsForRestrictedEnvironmentVariables()
    392 {
    393     my @arguments = ();
    394     foreach my $key (keys(%ENV)) {
    395         if ($key =~ /^DYLD_/) {
    396             push @arguments, "-e", "$key=$ENV{$key}";
    397         }
    398     }
    399     return @arguments;
    400 }
    401 
    402391sub testToolPaths()
    403392{
  • trunk/Tools/Scripts/webkitdirs.pm

    r208635 r208644  
    6060       &appDisplayNameFromBundle
    6161       &appendToEnvironmentVariableList
     62       &archCommandLineArgumentsForRestrictedEnvironmentVariables
    6263       &baseProductDir
    6364       &chdirWebKit
     
    24382439}
    24392440
     2441sub archCommandLineArgumentsForRestrictedEnvironmentVariables()
     2442{
     2443    my @arguments = ();
     2444    foreach my $key (keys(%ENV)) {
     2445        if ($key =~ /^DYLD_/) {
     2446            push @arguments, "-e", "$key=$ENV{$key}";
     2447        }
     2448    }
     2449    return @arguments;
     2450}
     2451
    24402452sub runMacWebKitApp($;$)
    24412453{
     
    24512463    }
    24522464    if (architecture()) {
    2453         return system "arch", "-" . architecture(), $appPath, argumentsForRunAndDebugMacWebKitApp();
     2465        return system "arch", "-" . architecture(), archCommandLineArgumentsForRestrictedEnvironmentVariables(), $appPath, argumentsForRunAndDebugMacWebKitApp();
    24542466    }
    24552467    return system { $appPath } $appPath, argumentsForRunAndDebugMacWebKitApp();
Note: See TracChangeset for help on using the changeset viewer.