NetBSD 10 has script with the Linux-style args. Tests are ok, except
that somehow, the with-tty call to import-rsnapshot exits before the
import is done. Test code then checks that the right bits were saved,
but they aren't there yet. I can't figure out why this is happening,
and whether it is coincidence or reliable that it doesn't happen on
other systems.
When run from the command line, it all behaves like it should...
A 1s delay fixes this, or rather works around it.
Available in g...@github.com:gdt/bup.git fix/script-early-return
Proposed for main and 0.33.x
From 32bd5896c7f2bb0cb316feae50c04d9aa740a56b Mon Sep 17 00:00:00 2001
From: Greg Troxel <
g...@lexort.com>
Date: Sun, 7 Dec 2025 20:00:04 -0500
Subject: [PATCH] test-misc: sleep 1 on netbsd after rsnapshot
For reasons not understood, the with-tty invocation returns before the
commands have been executed.
---
test/ext/test-misc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/ext/test-misc b/test/ext/test-misc
index bd60431a..2351ced4 100755
--- a/test/ext/test-misc
+++ b/test/ext/test-misc
@@ -150,6 +150,13 @@ else
WVPASS rm -rf "$BUP_DIR"
WVPASS bup init
WVPASS with-tty "$top/bup" import-rsnapshot rsnapshot/
+ case `uname` in
+ NetBSD)
+ sleep 1
+ ;;
+ *)
+ ;;
+ esac
WVPASSEQ "$(bup ls -F buptest/latest/)" "a/
c/"
fi
--
2.52.0