]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: vm-run: Create a symlink to the latest logs
authorJohannes Berg <johannes.berg@intel.com>
Fri, 1 Feb 2019 20:04:01 +0000 (21:04 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 1 Feb 2019 21:00:42 +0000 (23:00 +0200)
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@intel.com>
tests/hwsim/vm/vm-run.sh

index c000d429c51cb8b8c61b855ad7cfb6170121f6b7..1712ed349647cbfa9652ecd78cef999eac32914d 100755 (executable)
@@ -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"