Unverified Commit 95dfbd42 by Christian Brauner Committed by GitHub

Merge pull request #3797 from evverx/pass-on-asan

tests: pass on ASAN/UBSAN options to several tests
parents 00f224bb 5f850cf9
......@@ -48,7 +48,8 @@ FAIL() {
run_cmd() {
sudo -i -u $TUSER \
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) ASAN_OPTIONS=${ASAN_OPTIONS:-} \
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} $*
}
DONE=0
......
......@@ -94,7 +94,8 @@ cleanup() {
run_cmd() {
sudo -i -u $TUSER \
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) ASAN_OPTIONS=${ASAN_OPTIONS:-} \
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} $*
}
# create a test user
......
......@@ -60,7 +60,8 @@ cleanup() {
run_cmd() {
sudo -i -u usernic-user \
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) $*
XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) ASAN_OPTIONS=${ASAN_OPTIONS:-} \
UBSAN_OPTIONS=${UBSAN_OPTIONS:-} $*
}
ARCH=i386
......
......@@ -292,7 +292,7 @@ setup_and_run() {
fi
debug 0 "as $asuser executing ${MYPATH} ${pt_args[*]}"
sudo -Hu "$asuser" "${MYPATH}" "${pt_args[@]}"
sudo -Hu "$asuser" ASAN_OPTIONS=${ASAN_OPTIONS:-} UBSAN_OPTIONS=${UBSAN_OPTIONS:-} "${MYPATH}" "${pt_args[@]}"
}
USERNSEXEC=${USERNSEXEC:-lxc-usernsexec}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment