Skip to content

Commit c291070

Browse files
committed
ui-tests: do not ignore errors in RunWaitOne()
When the command fails, we should not simply continue, mistaking an empty string for being the valid output of a successful run. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 0b7a146 commit c291070

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui-tests/ui-test-library.ahk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ RunWaitOne(command) {
5959
shell := ComObject("WScript.Shell")
6060
; Execute a single command via cmd.exe
6161
exec := shell.Run(A_ComSpec " /C " command " | clip", 0, true)
62+
if exec != 0
63+
ExitWithError 'Error executing command: ' command
6264
; Read and return the command's output
6365
Result := A_Clipboard
6466
Clipboard := SavedClipboard

0 commit comments

Comments
 (0)