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() {