We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7ead32 commit 2eda533Copy full SHA for 2eda533
tests/playback/playback1
@@ -7,6 +7,8 @@
7
BASEDIR="`dirname "${0}"`/.."
8
SUDO_REQUIRED=1
9
10
+set -x
11
+
12
. "${BASEDIR}/functions"
13
. "${BASEDIR}/playback/playback1.sub"
14
tests/playback/playback1.sub
@@ -1,5 +1,13 @@
1
checktos() {
2
- RES="`${SUDO} ${TCPDUMP} -r "${1}" -v | grep 'tos ' | sed 's|.*tos ||;s|,.*||' | uniq`"
+ ls -l "${1}"
3
+ namei -l "${1}"
4
+ getfacl "${1}" || true
5
+ if ! ${TCPDUMP} -r "${1}" >/dev/null 2>&1
6
+ then
+ cp "`which tcpdump`" /tmp
+ local TCPDUMP="/tmp/tcpdump"
+ fi
+ RES="`${TCPDUMP} -r "${1}" -v | grep 'tos ' | sed 's|.*tos ||;s|,.*||' | uniq`"
test "${RES}" = "${2}"
report "checking TOS [${RES}]"
}
0 commit comments