lyx_mirror/development/autotests/stop_autotests.tcl
Tommaso Cucinotta 7eb64211b0 Revert "Long time no use of the autotests machinery, needs an update."
Pushed by mistake ... not finished yet ... apologies.

This reverts commit be79d2cda8.
2017-01-25 03:13:14 +01:00

18 lines
462 B
Tcl
Executable File

#!/usr/bin/wish8.5
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