After a build completes, change back into the previous directory (instead
of changing into the parent directory). (cmp) git-svn-id: svn://10.0.0.236/trunk@168025 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6981b2388b
commit
c8683a0b09
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user