[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi
Patrick Jenkins
pjenkins at apple.com
Mon Jul 10 15:25:45 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTestAccept.cgi updated: 1.10 -> 1.11
---
Log message:
Hopefully fixed the code that creates a file of the buildlog for each nightly test
---
Diffs of the changes: (+9 -7)
NightlyTestAccept.cgi | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
Index: nightlytest-serverside/NightlyTestAccept.cgi
diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.10 nightlytest-serverside/NightlyTestAccept.cgi:1.11
--- nightlytest-serverside/NightlyTestAccept.cgi:1.10 Fri Jul 7 13:36:01 2006
+++ nightlytest-serverside/NightlyTestAccept.cgi Mon Jul 10 17:25:32 2006
@@ -451,15 +451,17 @@
# writing logs to directory
#
######################################################################################################
+$curr=`pwd`;
+chomp($curr);
+
if(! -d "machines"){
- mkdir "machines", 0777 or print("couldnt create directory $base");
-}
-ChangeDir("machines", "Moving into machines directory");
+ mkdir "$curr/machines", 0777 or print("couldnt create directory $base");
+ }
+ChangeDir("$curr/machines", "Moving into machines directory");
if(! -d "$machine_id"){
- mkdir "$machine_id", 0777 or print("couldnt create directory $machine_id because $!");
-}
-ChangeDir("$machine_id", "Moving into machine $machine_id 's directory");
-
+ mkdir "$curr/machines/$machine_id", 0777 or print("couldnt create directory $machine_id because $!");
+ }
+ChangeDir("$curr/machines/$machine_id", "Moving into machine $machine_id 's directory");
$db_date =~ s/ /\_/g;
my $build_file = "$db_date-Build-Log.txt";
More information about the llvm-commits
mailing list