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:
cltbld 2005-01-19 22:46:59 +00:00
parent 6981b2388b
commit c8683a0b09

View File

@ -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;