[PATCH] tests: Use $LOGDIR for the config file name prefix
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Thu Oct 8 04:55:49 PDT 2026
start.sh passes a hardcoded -x/tmp/logs/ to the wpa_supplicant
instance used for dynamic interfaces. That path is only correct when
the tests run under vm-run.sh, where inside.sh mounts the log share
at /tmp/logs and re-exports LOGDIR=/tmp/logs.
When run-all.sh or start.sh is used directly, LOGDIR points to the
logs subdirectory instead, so every INTERFACE_ADD that passes a
configuration file from the log directory is rejected and the test
fails with "Failed to add a dynamic wpa_supplicant interface".
Use $LOGDIR, like the rest of the script already does.
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
tests/hwsim/start.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index e372f07e4c..e4b1c6117e 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -130,7 +130,7 @@ for i in 0 1 2; do
-ddKt$TRACE -f $LOGDIR/log$i $DBUSARG &
done
sudo $(printf -- "$VALGRIND_WPAS" 5) $WPAS -g /tmp/wpas-wlan5 -G$GROUP \
- -x/tmp/logs/ \
+ -x$LOGDIR/ \
-ddKt$TRACE -f $LOGDIR/log5 &
sudo $(printf -- "$VALGRIND_WPAS" 6) $WPAS -g /tmp/wpas-wlan6 -G$GROUP \
-ddKt$TRACE -f $LOGDIR/log6 &
--
2.53.0
More information about the Hostap
mailing list