File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ teardown() {
10
10
}
11
11
12
12
@test ' doltgres: no args' {
13
+ export DOLTGRES_DATA_DIR=
13
14
start_sql_server_with_args " --host 0.0.0.0"
14
15
run query_server -c " \l"
15
16
[ " $status " -eq 0 ]
@@ -21,31 +22,30 @@ teardown() {
21
22
}
22
23
23
24
@test ' doltgres: with --data-dir' {
25
+ export DOLTGRES_DATA_DIR=
24
26
start_sql_server_with_args " --host 0.0.0.0" " --data-dir=."
25
27
run query_server -c " \l"
26
28
[ " $status " -eq 0 ]
27
29
[[ " $output " =~ " information_schema" ]] || false
28
30
[[ " $output " =~ " doltgres" ]] || false
29
- [[ " $output " =~ " postgres" ]] || false
30
31
31
32
[ -d " doltgres" ]
32
33
}
33
34
34
35
@test ' doltgres: with DOLTGRES_DATA_DIR' {
35
- DOLTGRES_DATA_DIR=" $BATS_TEST_DIRNAME /test"
36
+ export DOLTGRES_DATA_DIR=" $( pwd ) /test"
36
37
start_sql_server_with_args " --host 0.0.0.0"
37
38
run query_server -c " \l"
38
39
[ " $status " -eq 0 ]
39
40
[[ " $output " =~ " information_schema" ]] || false
40
41
[[ " $output " =~ " doltgres" ]] || false
41
- [[ " $output " =~ " postgres" ]] || false
42
42
43
43
[ -d " test/doltgres" ]
44
44
[ ! -d " doltgres" ]
45
45
}
46
46
47
47
@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"
49
49
start_sql_server_with_args " --host 0.0.0.0" " --data-dir=./test2"
50
50
run query_server -c " \l"
51
51
[ " $status " -eq 0 ]
You can’t perform that action at this time.
0 commit comments