[PATCH] hwsim: vm-run: create a symlink to the latest logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

This is useful when running a test multiple times, looking at
log output etc. to not have to pick out the right directory
each and every time.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 tests/hwsim/vm/vm-run.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/hwsim/vm/vm-run.sh b/tests/hwsim/vm/vm-run.sh
index c000d429c51c..1712ed349647 100755
--- a/tests/hwsim/vm/vm-run.sh
+++ b/tests/hwsim/vm/vm-run.sh
@@ -86,6 +86,8 @@ done
 
 LOGDIR=$LOGS/$DATE
 mkdir -p $LOGDIR
+rm -f $LOGS/latest
+ln -s $LOGDIR $LOGS/latest
 
 if [ -n "$CODECOV_DIR" ]; then
     cp -a $CODECOV_DIR/alt-wpa_supplicant $LOGDIR
@@ -142,7 +144,7 @@ fi
 
 echo
 echo "Test run completed"
-echo "Logfiles are at $LOGDIR"
+echo "Logfiles are at $LOGDIR ($LOGS/latest)"
 if [ $CODECOV = "yes" ]; then
     echo "Code coverage report:"
     echo "file://$LOGDIR/lcov/index.html"
-- 
2.17.2


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux