Module Name:    src
Committed By:   rin
Date:           Fri Aug  9 02:20:13 UTC 2024

Modified Files:
        src/tests/net: net_common.sh

Log Message:
tests/net_common.sh: Halt rump servers only if already started

Do not cat(1) missing ${_rump_server_socks}, in case where
a test should be skipped before starting any rump server.

NFC otherwise; if ${_rump_server_socks} is absent,
`rump_server_halt` can nothing anyway, unfortunately.

Thanks ozaki-r@ for discussion.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/tests/net/net_common.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/net_common.sh
diff -u src/tests/net/net_common.sh:1.44 src/tests/net/net_common.sh:1.45
--- src/tests/net/net_common.sh:1.44	Wed Nov  2 09:35:12 2022
+++ src/tests/net/net_common.sh	Fri Aug  9 02:20:13 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: net_common.sh,v 1.44 2022/11/02 09:35:12 ozaki-r Exp $
+#	$NetBSD: net_common.sh,v 1.45 2024/08/09 02:20:13 rin Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -527,7 +527,9 @@ rump_server_dump_buses()
 cleanup()
 {
 
-	rump_server_halt_servers
+	if [ -f $_rump_server_socks ]; then
+		rump_server_halt_servers
+	fi
 }
 
 dump()

Reply via email to