summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/mptcp/diag.sh
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2022-11-30 17:06:25 +0300
committerJakub Kicinski <kuba@kernel.org>2022-12-02 07:06:06 +0300
commit787eb1e4df93f469e932ef686dd9dc767a9a2392 (patch)
treef3eaae51e9518e20c22bfe7a3456e7316148f109 /tools/testing/selftests/net/mptcp/diag.sh
parentb71dd705179cfd493b17cdf67f90b19ccfe45069 (diff)
downloadlinux-787eb1e4df93f469e932ef686dd9dc767a9a2392.tar.xz
selftests: mptcp: uniform 'rndh' variable
The definition of 'rndh' was probably copied from one script to another but some times, 'sec' was not defined, not used and/or not spelled properly. Here all the 'rndh' are now defined the same way. Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/mptcp/diag.sh')
-rwxr-xr-xtools/testing/selftests/net/mptcp/diag.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/mptcp/diag.sh b/tools/testing/selftests/net/mptcp/diag.sh
index 515859a5168b..24bcd7b9bdb2 100755
--- a/tools/testing/selftests/net/mptcp/diag.sh
+++ b/tools/testing/selftests/net/mptcp/diag.sh
@@ -1,6 +1,7 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
+sec=$(date +%s)
rndh=$(printf %x $sec)-$(mktemp -u XXXXXX)
ns="ns1-$rndh"
ksft_skip=4