This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

spindle: fix skipped tests not actually being skipped

`if` effectively neuters `set -e`:

```
$ bash -c 'set -ex; f() { false; echo 123; }; if f; then echo 456; fi'
+ f
+ false
+ echo 123
123
+ echo 456
456
```

so the test keeps on running. Instead, we can rely on `exit` (which is
not going to break as easily) + a subshell to make sure we actually
catch error codes. (This might also cause other forms of test "failure"
to not get detected, as well.)

author
re:fi.64
committer
Tangled
date (Jul 28, 2026, 2:40 PM +0300) commit eca1e96e parent 6b5b544c change-id knnpknso
+2 -2
+2 -2
spindle/engines/microvm/test-spindle-microvm.sh
··· 139 139 140 140 skip_test() { 141 141 echo "skipped: $*" 142 - return "$SKIP_TEST_RC" 142 + exit "$SKIP_TEST_RC" 143 143 } 144 144 145 145 host_is_nixos() { ··· 391 391 log "[$name] start (vsock port $port)" 392 392 393 393 local status="Passed" 394 - if "$func" > "$logfile" 2>&1; then 394 + if ("$func") > "$logfile" 2>&1; then 395 395 status="Passed" 396 396 else 397 397 local rc=$?