Skip to content

Commit

Permalink
qemu-test-init: export MESON_BUILD_DIR for pytest in shell
Browse files Browse the repository at this point in the history
When using "./qemu-test shell" to invoke pytest manually, the
MESON_BUILD_DIR env variable will not be set by meson.
Thus set it for convenience.

Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Jul 18, 2024
1 parent 48a7ff8 commit 5b473c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qemu-test-init
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ BUILD_DIR="$(realpath build)/"
for x in $(cat /proc/cmdline); do
if [ "$x" = "shell" ]; then
SHELL=1
export MESON_BUILD_DIR=$BUILD_DIR
elif [ "$x" = "system" ]; then
SHELL=1
SERVICE=1
Expand Down

0 comments on commit 5b473c9

Please sign in to comment.