ci: confirm the directory's schema migration when the test directory starts

The database is created by the CLI, so the service's own migration (20250924_directory_schema) asked for confirmation on stdin and the service exited. This run tests that the directory starts and the group and channel get listed.
This commit is contained in:
spacedandy-agents-simplex committed 2026-10-14 16:52:17 +00:00
1 parent 2ebad19b21
commit d041eebe6b
1 file changed
+2 -1
+2 -1
View File
@@ -87,7 +87,8 @@ create_directory() {
}
start_directory() {
nohup "$bin/simplex-directory-service" -d "$work/directory" --super-users "2:$admin" < /dev/null > "$work/directory.log" 2>&1 &
# -y: the service adds its own tables to the database the CLI created, and would otherwise ask on stdin
nohup "$bin/simplex-directory-service" -d "$work/directory" -y --super-users "2:$admin" < /dev/null > "$work/directory.log" 2>&1 &
echo $! > "$work/directory.pid"
sleep 5
if ! kill -0 "$(cat "$work/directory.pid")" 2> /dev/null; then