mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
Script for automating GUI update + headless and running basic tests. Sends email with logs
This commit is contained in:
18
updateTest.bash
Executable file
18
updateTest.bash
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
export DISPLAY=:1
|
||||||
|
|
||||||
|
GUILog="/home/lanforge/Documents/GUILog.txt"
|
||||||
|
GUIUpdate="/home/lanforge/Documents/GUIUpdateLog.txt"
|
||||||
|
CTLGUI="/home/lanforge/Documents/connectTestGUILog.txt"
|
||||||
|
CTLH="/home/lanforge/Documents/connectTestHLog.txt"
|
||||||
|
verNum="5.4.2"
|
||||||
|
|
||||||
|
python3 /home/lanforge/Documents/lanforge-scripts/auto-install-gui.py --versionNumber $verNum &> $GUIUpdate
|
||||||
|
python3 /home/lanforge/Documents/lanforge-scripts/connectTest.py &> $CTLGUI
|
||||||
|
|
||||||
|
pgrep java | xargs kill
|
||||||
|
|
||||||
|
/home/lanforge/LANforgeGUI_5.4.2/lfclient.bash -daemon -s localhost &> $GUILog &
|
||||||
|
python3 /home/lanforge/Documents/lanforge-scripts/connectTest.py &> $CTLH
|
||||||
|
|
||||||
|
echo "Logs Attached" | mail -s 'GUI Update Logs' -a $GUILog -a $GUIUpdate -a $CTLGUI -a $CTLH test.notice@candelatech.com
|
||||||
Reference in New Issue
Block a user