From 0e0653a87361b5672c0f4557a64f1a9339c000ef Mon Sep 17 00:00:00 2001 From: Mac Newbold Date: Thu, 18 Oct 2001 18:24:05 +0000 Subject: [PATCH] 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. --- testsuite/tbtest | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/tbtest b/testsuite/tbtest index 58c6bd68f..458db1964 100755 --- a/testsuite/tbtest +++ b/testsuite/tbtest @@ -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"); -- GitLab