forked from OSchip/llvm-project
We now fail and print an error message if a nightly tester does not specify a nickname on the command line
llvm-svn: 29230
This commit is contained in:
parent
683b966485
commit
db3c520931
|
@ -139,6 +139,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||
$CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next;
|
||||
}
|
||||
if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; }
|
||||
else{ $nickname=""; }
|
||||
if (/^-gccpath/) { $CONFIGUREARGS .=
|
||||
" CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++";
|
||||
$GCCPATH=$ARGV[0];
|
||||
|
@ -186,6 +187,10 @@ if (@ARGV == 3) {
|
|||
$WebDir = $ARGV[2];
|
||||
}
|
||||
|
||||
if($nickname eq ""){
|
||||
die ("Please invoke NewNightlyTest.pl with command line option \"-nickname <nickname>\"");
|
||||
}
|
||||
|
||||
##############################################################
|
||||
#
|
||||
#define the file names we'll use
|
||||
|
@ -461,6 +466,9 @@ $starttime = `date`;
|
|||
if (!$NOCHECKOUT) {
|
||||
if (-d $BuildDir) {
|
||||
if (!$NOREMOVE) {
|
||||
if ( $VERBOSE ){
|
||||
print "Build directory exists! Removing it\n";
|
||||
}
|
||||
system "rm -rf $BuildDir";
|
||||
} else {
|
||||
die "CVS checkout directory $BuildDir already exists!";
|
||||
|
|
Loading…
Reference in New Issue