Commit 0e0653a8 authored by Mac Newbold's avatar Mac Newbold

Add 'update users set admin=1 where uid='flest';' to the dumped db so that...

Add 'update users set admin=1 where uid='flest';' to the dumped db so that flest is set as admin for its runs. Gives it magical powers to clear out all the expts. We may want to someday change this to be UID instead of 'flest', so that whoever is running it becomes admin. But for now, I think everyone who runs the test suite already is an admin.
parent 027984f5
......@@ -382,6 +382,9 @@ sub step_init {
prints "Setting up test database.\n";
prints " Dumping Current ";
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");
prints " Creating DB ";
system("echo \"drop database if exists $testdb\" | mysql");
......
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