lib/test-driver: fix reading command output for other distros #382260
Unexpected error: command failed with exit code 1
Attempted: nixosTests.nat.firewall, nixosTests.networking.scripted.link, nixosTests.networking.scripted.virtual, nixosTests.keymap.azerty, nixosTests.keymap.dvorak-programmer, nixosTests.boot-stage1, nixosTests.keymap.neo, nixosTests.nfs4.simple, nixosTests.i3wm, nixosTests.udisks2, nixosTests.networking.networkd.loopback, nixosTests.containers-ip, nixosTests.ecryptfs, nixosTests.login, nixosTests.php.httpd, nixosTests.predictable-interface-names.unpredictable, nixosTests.predictable-interface-names.unpredictableNetworkd, nixosTests.mutableUsers
The following builds were skipped because they don't evaluate on aarch64-linux: nixosTests.installer.simpleProvided, nixosTests.installer.separateBootFat, nixosTests.printing, nixosTests.installer.swraid, nixosTests.installer.simpleLabels, nixosTests.zfs.installer
Details
Partial log
> tap0: tap persist user 0
> tun0: tun persist user 0
> "
> cleanup
> kill machine (pid 11)
> qemu-system-aarch64: terminating on signal 15 from pid 8 (/nix/store/rfm2viz8cpyahnmraaayhmki7v9767gg-python3-3.12.8/bin/python3.12)
> kill vlan (pid 9)
> (finished: cleanup, in 0.01 seconds)
For full logs, run 'nix log /nix/store/78780qc0ckb6r08y110iql9dyar73p3g-vm-test-run-Virtual-Networking-Scripted.drv'.
error: build of '/nix/store/1ycclk0s0czikm8nyfnv48n9bpbp9vhh-vm-test-run-containers-ipv4-ipv6.drv', '/nix/store/3li77pgdq1dkxhpi2hs8c9fwa3n72qx7-vm-test-run-mutable-users.drv', '/nix/store/417d1x95c667dqa4zqal4a3p0x3yf39b-vm-test-run-natWithFirewall.drv', '/nix/store/78780qc0ckb6r08y110iql9dyar73p3g-vm-test-run-Virtual-Networking-Scripted.drv', '/nix/store/bykkbc5sdx56r0xchkm79b2xjylwqnn4-vm-test-run-ecryptfs.drv' failed