Skip to content

Commit 355d42f

Browse files
SlouchyButtonphracek
authored andcommitted
Fix error in run_pgaudit_test()
Initially command `test was missing`, but after it was added test failed and crashed in a way that no more tests were run. This behavior is known issue tracked here in issue #537 Problem is that `DOCKER_EXTRA_ARGS` variable is set already which it shouldn't be, so the `test` command returns 0, so no `cp` happens and we get the crash. Variable is empty, but apparently do exist as `test -v DOCKER_EXTRA_ARGS` is `TRUE`. Introduced by PR #399
1 parent 34fc6a4 commit 355d42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run_test

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ run_pgaudit_test()
934934
# create a dir for config
935935
config_dir=$(mktemp -d --tmpdir pg-hook-volume.XXXXX)
936936
add_cleanup_command /bin/rm -rf "$config_dir"
937-
-v DOCKER_EXTRA_ARGS || cp -r "$test_dir"/examples/pgaudit/* "$config_dir"
937+
test -n "$DOCKER_EXTRA_ARGS" || cp -r "$test_dir"/examples/pgaudit/* "$config_dir"
938938
setfacl -R -m u:26:rwx "$config_dir"
939939

940940
# create a dir for data

0 commit comments

Comments
 (0)