[PATCH] tests: assume --long for UML

Johannes Berg <[email protected]>
Newsgroups gmane.linux.drivers.hostap
Message-ID <1585482404-Ie3e0843b1513f042d6e30fbea560aa5a2d9c6def@changeid>
From: Johannes Berg <[email protected]>

If we use user-mode-linux, we have time-travel, and then
the --long argument doesn't really make a difference, so
just assume that's the case.

Signed-off-by: Johannes Berg <[email protected]>
---
 tests/hwsim/vm/vm-run.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/hwsim/vm/vm-run.sh b/tests/hwsim/vm/vm-run.sh
index b31beb139596..06dee068960b 100755
--- a/tests/hwsim/vm/vm-run.sh
+++ b/tests/hwsim/vm/vm-run.sh
@@ -136,6 +136,9 @@ function finish {
 }
 trap finish EXIT
 
+if [ -z $KVM ]; then
+	RUN_TEST_ARGS="--long $RUN_TEST_ARGS"
+fi
 echo "$RUN_TEST_ARGS" > $argsfile
 
 A="mac80211_hwsim.support_p2p_device=0 "
-- 
2.25.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.