]> git.lyx.org Git - lyx.git/blobdiff - development/autotests/keytest.py
findadv: almost all test cases, including \regex[{}, back to working with std::regex.
[lyx.git] / development / autotests / keytest.py
index 608ce7357b193542d98448eb3d208866ebddd020..3a609277149b949758a76dc4a3e0953c46aebd81 100755 (executable)
@@ -166,14 +166,14 @@ def intr_system(cmd, ignore_err = False):
     if os.WIFSIGNALED(ret):
         raise KeyboardInterrupt
     if ret != 0 and not ignore_err:
-        raise BaseException("command failed.")
+        raise BaseException("command failed:" + cmd)
     return ret
 
 
 # Return true if LyX (identified via lyx_pid) is sleeping
 def lyx_sleeping():
     fname = '/proc/' + lyx_pid + '/status'
-    return intr_system("grep 'State.*sleeping' " + fname)
+    return intr_system("grep 'State.*sleeping' " + fname, True)
 
 
 def sendKeystring(keystr, LYX_PID):