зеркало из https://github.com/mozilla/pjs.git
After a build completes, change back into the previous directory (instead
of changing into the parent directory). (cmp)
This commit is contained in:
Родитель
01417e2e57
Коммит
744ce82a14
|
@ -2,6 +2,7 @@
|
|||
# vim:sw=4:et:ts=4:ai:
|
||||
|
||||
use strict;
|
||||
use Cwd;
|
||||
|
||||
sub PrintUsage() {
|
||||
die <<END_USAGE
|
||||
|
@ -55,10 +56,11 @@ sub Run() {
|
|||
# It prevents sending too many messages to the tinderbox server when
|
||||
# something is broken.
|
||||
foreach my $treeentry (@{$Settings::Tinderboxes}) {
|
||||
my $multidir = getcwd();
|
||||
chdir($treeentry->{tree}) or
|
||||
die "Tree $treeentry->{tree} does not exist";
|
||||
system("./build-seamonkey.pl --once $treeentry->{args}");
|
||||
chdir("..");
|
||||
chdir($multidir);
|
||||
|
||||
# We sleep 15 seconds to open up a window for stopping a build.
|
||||
sleep 15;
|
||||
|
|
Загрузка…
Ссылка в новой задаче