summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Fischer <sven@fischer-abc.de>2018-03-12 23:00:28 +0100
committerSven Fischer <sven@fischer-abc.de>2018-03-12 23:19:24 +0100
commitc64fa1496517ba57e5a4dc4573ce5abf73ea03a0 (patch)
treea7f2c9fb4172bc748fad126e63ad6b2956350630
parenta96c7e748fccfa796a712b6aac92206212915cdc (diff)
run-tests.sh: added dependency check for netstat
Because bug-924726.t depends on netstat, tests failed before. This got resolved by adding respective check to run-tests.sh. Enabled respective test again. Change-Id: I70c9bff03379ed9ee8cd95842c3501dfb50b8e86 BUG: 1312830 Signed-off-by: Sven Fischer <sven@fischer-abc.de>
-rwxr-xr-xrun-tests.sh6
-rwxr-xr-xtests/bugs/fuse/bug-924726.t2
2 files changed, 6 insertions, 2 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 450d066..8c55972 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -41,6 +41,12 @@ function check_dependencies()
fi
fi
+ # Check for netstat
+ env netstat --version > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ MISSING="$MISSING netstat"
+ fi
+
# Check for the Perl Test Harness
env prove --version > /dev/null 2>&1
if [ $? -ne 0 ]; then
diff --git a/tests/bugs/fuse/bug-924726.t b/tests/bugs/fuse/bug-924726.t
index 65c56aa..2d3c768 100755
--- a/tests/bugs/fuse/bug-924726.t
+++ b/tests/bugs/fuse/bug-924726.t
@@ -43,5 +43,3 @@ SOCKETS_AFTER_SWITCH=`netstat -nap | grep $GLFS_MNT_PID | grep ESTABLISHED | wc
TEST [ $SOCKETS_AFTER_SWITCH = `expr $SOCKETS_BEFORE_SWITCH + 1` ]
cleanup;
-#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=000000
-#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=000000