Cope with progname now being present in vmd errors messages.
authoranton <anton@openbsd.org>
Wed, 27 Sep 2023 05:18:40 +0000 (05:18 +0000)
committeranton <anton@openbsd.org>
Wed, 27 Sep 2023 05:18:40 +0000 (05:18 +0000)
regress/usr.sbin/vmd/config/Makefile

index d913840..e9e9e74 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.11 2023/04/26 10:14:21 dv Exp $
+#      $OpenBSD: Makefile,v 1.12 2023/09/27 05:18:40 anton Exp $
 
 VMD ?= /usr/sbin/vmd
 
@@ -18,7 +18,7 @@ run-pass-$n:
 REGRESS_TARGETS +=     run-fail-$n
 run-fail-$n:
        ${VMD} -n -f ${.CURDIR}/vmd-fail-$n.conf 2>&1 | \
-           cut -d : -f 2,3,4 | \
+           sed -e 's/^vmd: //' -e 's|${.CURDIR}/vmd-fail-$n.conf:||' | \
            diff -u ${.CURDIR}/vmd-fail-$n.ok /dev/stdin
 .endfor