virtme-run: Forward some more environment variables
XDG_DATA_DIRS and LD_LIBRARY_PATH is needed to make sure non-system link directories are respected, e.g. when using jhbuild. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2159>
This commit is contained in:
parent
5b720a157c
commit
daa945175b
1 changed files with 7 additions and 1 deletions
|
@ -12,12 +12,18 @@ TEST_BUILD_DIR="$5"
|
|||
TEST_RESULT_FILE=$(mktemp -p "$TEST_BUILD_DIR" -t test-result-XXXXXX)
|
||||
echo 1 > "$TEST_RESULT_FILE"
|
||||
|
||||
VIRTME_ENV="\
|
||||
HOME=$HOME \
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH \
|
||||
XDG_DATA_DIRS=$XDG_DATA_DIRS \
|
||||
"
|
||||
|
||||
virtme-run \
|
||||
--memory=256M \
|
||||
--rw \
|
||||
--pwd \
|
||||
--kimg "$IMAGE" \
|
||||
--script-sh "sh -c \"env HOME=$HOME $DIRNAME/run-kvm-test.sh \\\"$WRAPPER\\\" \\\"$WRAPPER_ARGS\\\" \\\"$TEST_EXECUTABLE\\\" \\\"$TEST_RESULT_FILE\\\"\""
|
||||
--script-sh "sh -c \"env $VIRTME_ENV $DIRNAME/run-kvm-test.sh \\\"$WRAPPER\\\" \\\"$WRAPPER_ARGS\\\" \\\"$TEST_EXECUTABLE\\\" \\\"$TEST_RESULT_FILE\\\"\""
|
||||
|
||||
TEST_RESULT="$(cat "$TEST_RESULT_FILE")"
|
||||
rm "$TEST_RESULT_FILE"
|
||||
|
|
Loading…
Reference in a new issue