diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-09 16:50:25 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-10 10:02:23 -0400 |
| commit | e81fe1d362e430e81fd474569eb7b403db5f66d6 (patch) | |
| tree | 387a8490251bd7b369b972d7314fa3dc9c2a05ee /test/test-abstraction-ssp.sh | |
| parent | parallelise: show_abstraction & ocda_db as the rest (diff) | |
--serial default behaviour (--parallel an option)
serial processing, it turns out, is significantly faster and more
efficient for tested use-cases, which came as a surprise. As the
parallelization option buys nothing, serial processing is set as
default. Parallel processing remains as an option (where
available, as before).
(assisted by Claude-Code)
Diffstat (limited to 'test/test-abstraction-ssp.sh')
| -rwxr-xr-x | test/test-abstraction-ssp.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test-abstraction-ssp.sh b/test/test-abstraction-ssp.sh index 3b2217b..b63c6e4 100755 --- a/test/test-abstraction-ssp.sh +++ b/test/test-abstraction-ssp.sh @@ -105,10 +105,11 @@ echo "Generating current .ssp files..." rm -rf "$TMP_DIR" mkdir -p "$TMP_DIR" # this run has to be the parallel one: the serial run below is what it is -# compared against, and two serial runs compare nothing. --show-abstraction -# now parallelises on its own, and --abstraction is kept as well so that the -# test does not go quietly serial if that ever changes. -$SPINE_BIN --abstraction --show-abstraction --skip-output --output="$SCRIPT_DIR/current" "$SAMPLES_DIR"/* 2>&1 | tail -1 +# compared against, and two serial runs compare nothing. Serial is spine's +# behaviour now and --parallel is the option, so it has to be asked for +# here by name. Drop it and this test stops guarding the .ssp write race +# without any test failing to say so. +$SPINE_BIN --parallel --show-abstraction --skip-output --output="$SCRIPT_DIR/current" "$SAMPLES_DIR"/* 2>&1 | tail -1 # flatten find "$SCRIPT_DIR/current" -name "*.ssp" ! -path "$TMP_DIR/*" -exec mv {} "$TMP_DIR/" \; find "$SCRIPT_DIR/current" -mindepth 1 -type d -empty -delete 2>/dev/null || true |
