Skip to content

Commit

Permalink
lib/common.bash: Fix overwrite of KATA_TESTS_BASEDIR
Browse files Browse the repository at this point in the history
To overwrite the KATA_TESTS_BASEDIR variable it should be defined
another of same name, not KATA_TESTS_LOGDIR.

Fixes kata-containers#2999

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm committed Oct 21, 2020
1 parent 23ed832 commit cef41ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ VC_POD_DIR="${VC_POD_DIR:-/run/vc/sbs}"
RUN_SBS_DIR="${RUN_SBS_DIR:-/run/vc/sbs}"

# Kata tests directory used for storing various test-related artifacts.
KATA_TESTS_BASEDIR="${KATA_TESTS_LOGDIR:-/var/log/kata-tests}"
KATA_TESTS_BASEDIR="${KATA_TESTS_BASEDIR:-/var/log/kata-tests}"

# Directory that can be used for storing test logs.
KATA_TESTS_LOGDIR="${KATA_TESTS_LOGDIR:-${KATA_TESTS_BASEDIR}/logs}"
Expand Down

0 comments on commit cef41ad

Please sign in to comment.