Commit 12a388f7 authored by Leigh Stoller's avatar Leigh Stoller

Do not bother to make a -failed directory in /proj/$pid/exp; just

make one in /usr/testbed/expwork/$pid. Too much cruft getting left
behind and it was causing even more log copy errors! Besides,
typically its just tbops people who need to look at that stuff.
parent cc8b163d
......@@ -407,14 +407,10 @@ sub fatal()
($logname, "assign.log", "wanassign.log", $nsfile));
#
# Copy off the workdir to the user directory, Then back up both of
# them for post-mortem debugging.
# Back up the work dir for post-mortem debugging.
#
system("/bin/cp -Rfp $workdir/ $userdir/tbdata");
system("/bin/rm -rf ${workdir}-failed");
system("/bin/mv -f $workdir ${workdir}-failed");
system("/bin/rm -rf ${userdir}-failed");
system("/bin/mv -f $userdir ${userdir}-failed");
#
# Clear the record and cleanup.
......
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -312,7 +312,7 @@ TBSaveExpLogFiles($pid, $eid);
# can see the log files. This overwrites existing files of course,
# but thats okay.
#
system("cp -Rfp $workdir/ $userdir/tbdata");
system("cp -Rfp $workdir/ $userdir/tbdata/");
#
# Must unlock before exit.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment