From 2cac4b0f9fff6a139051d312e035baea956742ff Mon Sep 17 00:00:00 2001 From: Jimmy Cann Date: Wed, 7 Aug 2019 10:39:06 +1000 Subject: [PATCH] SQL dump and restore to use absolute path --- services/testing/testcafe/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/testing/testcafe/main.go b/services/testing/testcafe/main.go index c01af4e9..b32bc12b 100644 --- a/services/testing/testcafe/main.go +++ b/services/testing/testcafe/main.go @@ -189,9 +189,10 @@ func clearDrupalCache() { func copyDefaultDB() { fmt.Println("🖨️ Creating a test copy of the database") + outputPath := filepath.Join(testCafeContainerPath(), "toktest-dump.sql") - ssh.ConnectCommand([]string{"drush", "sql-dump", "--result-file=toktest-dump.sql", "-d"}) - ssh.ConnectCommand([]string{"drush", "sql-cli", "--database=test", "<", "toktest-dump.sql", "-d"}) + ssh.ConnectCommand([]string{"drush", "sql-dump", "--result-file=" + outputPath, "-d"}) + ssh.ConnectCommand([]string{"drush", "sql-cli", "--database=test", "<", outputPath, "-d"}) } func addTestCafeUsers() {