summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/txtimestamp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/net/txtimestamp.sh')
-rwxr-xr-xtools/testing/selftests/net/txtimestamp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/txtimestamp.sh b/tools/testing/selftests/net/txtimestamp.sh
index eea6f5193693..31637769f59f 100755
--- a/tools/testing/selftests/net/txtimestamp.sh
+++ b/tools/testing/selftests/net/txtimestamp.sh
@@ -75,7 +75,7 @@ main() {
fi
}
-if [[ "$(ip netns identify)" == "root" ]]; then
+if [[ -z "$(ip netns identify)" ]]; then
./in_netns.sh $0 $@
else
main $@