lyx_mirror/development/autotests/stop_autotests.tcl
Tommaso Cucinotta a8bb3171f1 Recovered working autotests for findadv on Linux/Ubuntu (after a long no-use time).
- from specific dependency on wish8.5, to just wish
- from checking the 2nd line of /proc/*/status, to grep-ing on sleeping (old system was failing on newer kernels)
- mode debugging and python output during tests
2017-04-15 23:38:41 +02:00

18 lines
459 B
Tcl
Executable File

#!/usr/bin/wish
wm attributes . -topmost 1
image create photo .stop -format GIF -file stop.gif
button .stop_autotests -image .stop -text "STOP LyX Tests" -compound left -command {
set status 0
if {[catch {exec killall --wait run-tests.sh single-test.sh lyx} results]} {
if {[lindex $::errorCode 0] eq "CHILDSTATUS"} {
set status [lindex $::errorCode 2]
} else {
# Some kind of unexpected failure
}
}
exit
}
pack .stop_autotests