Skip to content

Commit 89c00fe

Browse files
committed
fix
1 parent 24d9c06 commit 89c00fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/bats/doltgres.bats

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ teardown() {
1010
}
1111

1212
@test 'doltgres: no args' {
13+
export DOLTGRES_DATA_DIR=
1314
start_sql_server_with_args "--host 0.0.0.0"
1415
run query_server -c "\l"
1516
[ "$status" -eq 0 ]
@@ -21,31 +22,30 @@ teardown() {
2122
}
2223

2324
@test 'doltgres: with --data-dir' {
25+
export DOLTGRES_DATA_DIR=
2426
start_sql_server_with_args "--host 0.0.0.0" "--data-dir=."
2527
run query_server -c "\l"
2628
[ "$status" -eq 0 ]
2729
[[ "$output" =~ "information_schema" ]] || false
2830
[[ "$output" =~ "doltgres" ]] || false
29-
[[ "$output" =~ "postgres" ]] || false
3031

3132
[ -d "doltgres" ]
3233
}
3334

3435
@test 'doltgres: with DOLTGRES_DATA_DIR' {
35-
DOLTGRES_DATA_DIR="$BATS_TEST_DIRNAME/test"
36+
export DOLTGRES_DATA_DIR="$(pwd)/test"
3637
start_sql_server_with_args "--host 0.0.0.0"
3738
run query_server -c "\l"
3839
[ "$status" -eq 0 ]
3940
[[ "$output" =~ "information_schema" ]] || false
4041
[[ "$output" =~ "doltgres" ]] || false
41-
[[ "$output" =~ "postgres" ]] || false
4242

4343
[ -d "test/doltgres" ]
4444
[ ! -d "doltgres" ]
4545
}
4646

4747
@test 'doltgres: with both --data-dir and DOLTGRES_DATA_DIR' {
48-
DOLTGRES_DATA_DIR="$BATS_TEST_DIRNAME/test1"
48+
export DOLTGRES_DATA_DIR="$(pwd)/test1"
4949
start_sql_server_with_args "--host 0.0.0.0" "--data-dir=./test2"
5050
run query_server -c "\l"
5151
[ "$status" -eq 0 ]

0 commit comments

Comments
 (0)