aboutsummaryrefslogtreecommitdiff
path: root/invoke_session_oe
diff options
context:
space:
mode:
Diffstat (limited to 'invoke_session_oe')
-rwxr-xr-xinvoke_session_oe5
1 files changed, 4 insertions, 1 deletions
diff --git a/invoke_session_oe b/invoke_session_oe
index 8b6fe0c..80e2f1e 100755
--- a/invoke_session_oe
+++ b/invoke_session_oe
@@ -38,7 +38,10 @@ echo ""
echo ""
cat <<EOF > ~/.bash_logout
-stop_hacking
+if [ $(who |egrep 'pts\/[0-9]+' |wc -l) -eq 1 ]; then
+ lava-test-case hacking-stopped-logout --result pass
+ stop_hacking
+fi
EOF
mkdir -p /run