Commit e2ab35f8 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Bogus change to avoid using nodes in hwdown since they appear not to

be totally set up in the DB. Should be backout at some point, cause
the shark tests fail now.
Also some minor cleanup and fixes.
parent a8413476
......@@ -384,7 +384,7 @@ sub step_init {
tbexec("mysqldump $TBDB","$path/dbdump.txt");
# Now add a line to the dumped database that sets flest as an admin
tbexec("echo \"update users set admin=1 where uid='flest';\"".
" >> $path/dbdump.txt");
" >> $path/dbdump.txt", "dbdump.log");
prints " Creating DB ";
system("echo \"drop database if exists $testdb\" | mysql");
......@@ -404,7 +404,8 @@ sub step_init {
# Clear out experiments and set up test experiment.
prints " Clearing out existing experiments ";
open(CLEARLOG,"> clear.log");
$sth = $dbh->prepare("SELECT pid,eid from experiments");
$sth = $dbh->prepare("SELECT pid,eid from experiments ".
"where !(pid='emulab-ops' and eid='hwdown')");
while (($pid,$eid) = $sth->fetchrow_array) {
print CLEARLOG "$pid $eid\n";
......@@ -432,7 +433,8 @@ sub step_init {
# now we clear
$dbh->do("delete from reserved where pid=\"emulab-ops\"") || do {
$dbh->do("delete from reserved ".
"where pid='emulab-ops' and eid!='hwdown'") || do {
prints "FAIL\n";
Supports Markdown
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