Changeset 285875 in webkit
- Timestamp:
- Nov 16, 2021, 11:31:42 AM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/run-javascriptcore-tests (modified) (1 diff)
-
Scripts/run-jsc-stress-tests (modified) (7 diffs)
-
Scripts/webkitdirs.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r285873 r285875 1 2021-11-16 Zhifei Fang <zhifei_fang@apple.com> 2 3 Make run-javascript-core-test and run-jsc-stress-tests support a customized identity file 4 https://bugs.webkit.org/show_bug.cgi?id=232453 5 6 Reviewed by Ryan Haddad. 7 8 * Scripts/run-javascriptcore-tests: Add idFilePath field for remote config. 9 * Scripts/run-jsc-stress-tests: Add idFilePath field for remote config. 10 * Scripts/webkitdirs.pm: 11 (determineNativeArchitecture): Provide -i option to ssh 12 1 13 2021-11-16 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/Tools/Scripts/run-javascriptcore-tests
r279394 r285875 525 525 } elsif (defined $remoteConfig->{"remote"}) { 526 526 my @split = split(':', $remoteConfig->{"remote"}); 527 $remotes = [ 528 { 529 "name" => "synthesized", 530 "address" => $remoteConfig->{"remote"} 531 } 532 ]; 527 my $remote = { 528 "name" => "synthesized", 529 "address" => $remoteConfig->{"remote"} 530 }; 531 if (exists $remoteConfig->{"idFilePath"}) { 532 $remote->{'idFilePath'} = $remoteConfig->{'idFilePath'}; 533 } 534 $remotes = [$remote]; 533 535 } 534 536 } -
trunk/Tools/Scripts/run-jsc-stress-tests
r285522 r285875 52 52 } 53 53 54 RemoteHost = Struct.new(:name, :user, :host, :port, :remoteDirectory )54 RemoteHost = Struct.new(:name, :user, :host, :port, :remoteDirectory, :identity_file_path) 55 55 56 56 THIS_SCRIPT_PATH = Pathname.new(__FILE__).realpath … … 326 326 $remoteHosts[0].remoteDirectory = config['remoteDirectory'] 327 327 end 328 if config['idFilePath'] 329 $remoteHosts[0].identity_file_path = config['idFilePath'] 330 end 328 331 end 329 332 … … 340 343 if remote['remoteDirectory'] 341 344 host.remoteDirectory = remote['remoteDirectory'] 345 end 346 if remote['idFilePath'] 347 host.identity_file_path = remote['idFilePath'] 348 print('Using identity file: ' + host.identity_file_path + "\r") 342 349 end 343 350 host … … 2119 2126 2120 2127 result = "" 2121 IO.popen("ssh -o NoHostAuthenticationForLocalhost=yes -p #{remoteHost.port} #{remoteHost.user}@#{remoteHost.host} '#{cmd}'", "r") {2128 IO.popen("ssh -o NoHostAuthenticationForLocalhost=yes -p #{remoteHost.port}" + (remoteHost.identity_file_path ? " -i #{remoteHost.identity_file_path}" : "") + " #{remoteHost.user}@#{remoteHost.host} '#{cmd}'", "r") { 2122 2129 | inp | 2123 2130 inp.each_line { … … 2257 2264 2258 2265 def copyBundleToRemote(remoteHost) 2259 mysys(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes" ,"-p", remoteHost.port.to_s, "#{remoteHost.user}@#{remoteHost.host}", "mkdir -p #{remoteHost.remoteDirectory}"])2260 mysys(["scp", "-o", "NoHostAuthenticationForLocalhost=yes" ,"-P", remoteHost.port.to_s, ($outputDir.dirname + $tarFileName).to_s, "#{remoteHost.user}@#{remoteHost.host}:#{remoteHost.remoteDirectory}"])2266 mysys(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes"] + (remoteHost.identity_file_path ? ["-i", remoteHost.identity_file_path] : []) + ["-p", remoteHost.port.to_s, "#{remoteHost.user}@#{remoteHost.host}", "mkdir -p #{remoteHost.remoteDirectory}"]) 2267 mysys(["scp", "-o", "NoHostAuthenticationForLocalhost=yes"] + (remoteHost.identity_file_path ? ["-i", remoteHost.identity_file_path] : []) + ["-P", remoteHost.port.to_s, ($outputDir.dirname + $tarFileName).to_s, "#{remoteHost.user}@#{remoteHost.host}:#{remoteHost.remoteDirectory}"]) 2261 2268 end 2262 2269 … … 2292 2299 $envVars.each { |var| remoteScript += "export " << var << "\n" } 2293 2300 remoteScript += "#{testRunnerCommand(remoteIndex)}\"" 2294 runAndMonitorTestRunnerCommand(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes" ,"-p", remoteHost.port.to_s, "#{remoteHost.user}@#{remoteHost.host}", remoteScript])2301 runAndMonitorTestRunnerCommand(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes"] + (remoteHost.identity_file_path ? ["-i", remoteHost.identity_file_path] : []) + ["-p", remoteHost.port.to_s, "#{remoteHost.user}@#{remoteHost.host}", remoteScript]) 2295 2302 else 2296 2303 Dir.chdir($runnerDir) { … … 2667 2674 forEachRemote(remoteHosts, :dropOnFailure => true) { 2668 2675 | _, remoteHost | 2669 mysys(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes", 2670 "-p", remoteHost.port.to_s, 2676 mysys(["ssh", "-o", "NoHostAuthenticationForLocalhost=yes"] + 2677 (remoteHost.identity_file_path ? ["-i", remoteHost.identity_file_path] : []) + 2678 ["-p", remoteHost.port.to_s, 2671 2679 "#{remoteHost.user}@#{remoteHost.host}", 2672 2680 "cd #{Shellwords.shellescape(remoteHost.remoteDirectory)} && rm -rf #{$outputDir.basename} && tar xzf #{$tarFileName}"]) -
trunk/Tools/Scripts/webkitdirs.pm
r284922 r285875 374 374 my $port = 22; 375 375 $port = $split[1] if scalar(@split) > 1; 376 $output = `ssh -o NoHostAuthenticationForLocalhost=yes -p $port $target 'uname -m'`; 376 my $cmd = 'ssh -o NoHostAuthenticationForLocalhost=yes '. (exists $remote->{'idFilePath'} ? ('-i '.$remote->{'idFilePath'}) : '') ." -p $port $target 'uname -m'"; 377 $output = readpipe($cmd); 377 378 last if ($? == 0); 378 379 }
Note:
See TracChangeset
for help on using the changeset viewer.