Skip to content

Commit

Permalink
SQL dump and restore to use absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycann committed Aug 7, 2019
1 parent 81d1320 commit 2cac4b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/testing/testcafe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2cac4b0

Please sign in to comment.