Skip to content

Commit

Permalink
run-tests: support tests with multiple VMs in run
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt authored and nixbitcoin committed Aug 5, 2022
1 parent 1750783 commit 952cd37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ run() {
echo 'is_interactive = True'
echo 'exec(open(os.environ["testScript"]).read())'
# Start VM
echo 'start_all()'
echo 'if "machine" in vars(): machine.start()'
# Start REPL.
# Use `code.interact` for the REPL instead of the builtin test driver REPL
# because it supports low featured terminals like Emacs' shell-mode.
Expand All @@ -155,7 +155,6 @@ run() {
NIX_PATH="$NIX_PATH" \
TMPDIR="$TMPDIR" \
USE_TMPDIR=1 \
NIX_DISK_IMAGE=$TMPDIR/img.qcow2 \
QEMU_OPTS="-smp $numCPUs -m $memoryMiB -nographic $QEMU_OPTS" \
QEMU_NET_OPTS="$QEMU_NET_OPTS" \
$TMPDIR/driver/bin/nixos-test-driver <(echo "$tests")
Expand Down

0 comments on commit 952cd37

Please sign in to comment.