test/system: Drop hack around unknown dirs in containers
This hack should not be needed since v0.0.99.2[0]. [0] https://github.com/containers/toolbox/releases/tag/0.0.99.2 https://github.com/containers/toolbox/pull/843
This commit is contained in:
parent
16b0c5d88f
commit
6c2cd0e929
|
|
@ -4,19 +4,12 @@ load 'libs/bats-support/load'
|
||||||
load 'libs/bats-assert/load'
|
load 'libs/bats-assert/load'
|
||||||
load 'libs/helpers'
|
load 'libs/helpers'
|
||||||
|
|
||||||
# It seems like 'toolbox run' (or 'enter') doesn't work fine when
|
|
||||||
# the workdir is outside the $HOME.
|
|
||||||
# This hack is to make the tests work from outside the $HOME.
|
|
||||||
readonly CURDIR=$PWD
|
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
cd "$HOME" || return 1
|
|
||||||
cleanup_containers
|
cleanup_containers
|
||||||
}
|
}
|
||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
cleanup_containers
|
cleanup_containers
|
||||||
cd "$CURDIR" || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue