Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.sbin/traceroute avoid temp file per clue-by-four f...
details: https://anonhg.NetBSD.org/src/rev/6e0b0df59f08
branches: trunk
changeset: 760231:6e0b0df59f08
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Dec 31 15:21:49 2010 +0000
description:
avoid temp file per clue-by-four from jmmv
diffstat:
tests/usr.sbin/traceroute/t_traceroute.sh | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (27 lines):
diff -r 5494b6d3554c -r 6e0b0df59f08 tests/usr.sbin/traceroute/t_traceroute.sh
--- a/tests/usr.sbin/traceroute/t_traceroute.sh Fri Dec 31 14:55:07 2010 +0000
+++ b/tests/usr.sbin/traceroute/t_traceroute.sh Fri Dec 31 15:21:49 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_traceroute.sh,v 1.3 2010/12/30 16:58:07 pooka Exp $
+# $NetBSD: t_traceroute.sh,v 1.4 2010/12/31 15:21:49 pooka Exp $
#
# Copyright (c) 2010 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -84,13 +84,11 @@
threeservers
export RUMP_SERVER=unix://commsock1
- atf_check -s exit:0 \
- -o save:tmpfile -e ignore rump.traceroute ${1} -n 2.3.4.5
- atf_check -o inline:'1.2.3.1\n2.3.4.5\n' awk '{print $2}' < tmpfile
+ atf_check -s exit:0 -o inline:'1.2.3.1\n2.3.4.5\n' -e ignore -x \
+ "rump.traceroute ${1} -n 2.3.4.5 | awk '{print \$2}'"
export RUMP_SERVER=unix://commsock3
- atf_check -s exit:0 \
- -o save:tmpfile -e ignore rump.traceroute ${1} -n 1.2.3.4
- atf_check -o inline:'2.3.4.1\n1.2.3.4\n' awk '{print $2}' < tmpfile
+ atf_check -s exit:0 -o inline:'2.3.4.1\n1.2.3.4\n' -e ignore -x \
+ "rump.traceroute ${1} -n 1.2.3.4 | awk '{print \$2}'"
}
basic_body()
Home |
Main Index |
Thread Index |
Old Index