summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-04-13 07:38:24 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-04-13 07:38:24 +0000
commit9d39d475cf15c137b1ccaf346a4caa96489bc2fc (patch)
treed5f9a5003741496e45f399462bef99b30d9cbc83 /regress
parent5580c82e42d0d314c83c6138dd63f35847976348 (diff)
Use tee(1) so that the bgpctl output is visible during the run.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.sbin/bgpd/integrationtests/mrt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.sbin/bgpd/integrationtests/mrt.sh b/regress/usr.sbin/bgpd/integrationtests/mrt.sh
index 759088d45c5..d5cec8c90db 100644
--- a/regress/usr.sbin/bgpd/integrationtests/mrt.sh
+++ b/regress/usr.sbin/bgpd/integrationtests/mrt.sh
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: mrt.sh,v 1.3 2019/08/06 07:31:53 claudio Exp $
+# $OpenBSD: mrt.sh,v 1.4 2021/04/13 07:38:23 claudio Exp $
set -e
@@ -52,7 +52,7 @@ sleep 2
for i in table-v2 table-mp table; do
echo test $i
bgpctl show mrt detail file mrt-$i.mrt | \
- grep -v 'Last update:' > mrt-$i.out
+ grep -v 'Last update:' | tee mrt-$i.out
diff -u ${BGPDCONFIGDIR}/mrt-$i.ok mrt-$i.out
done