X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2Fkeytest.py;h=b2a89c2d0d63944c101146419e0997950b9b1e58;hb=1e807d5183896250bb28ac2cdec61e2a7423e8b6;hp=f403fdc99ec700e396f6323a69f6e62ac3a5f1c8;hpb=9481d4182e225012632cc36a7cbc77e4beaf3d0e;p=lyx.git diff --git a/development/autotests/keytest.py b/development/autotests/keytest.py index f403fdc99e..b2a89c2d0d 100755 --- a/development/autotests/keytest.py +++ b/development/autotests/keytest.py @@ -354,7 +354,7 @@ while not failed: print 'lyx_pid: ' + lyx_pid + '\n' print 'lyx_win: ' + lyx_window_name + '\n' elif c[0:5] == 'Sleep': - print "Sleeping for " + c[6:] + "\n" + print "Sleeping for " + c[6:] + " seconds\n" time.sleep(float(c[6:])) elif c[0:4] == 'Exec': cmd = c[5:].rstrip() @@ -384,7 +384,6 @@ while not failed: sendKeystring(ResetCommand, lyx_pid) elif c[0:6] == 'Assert': cmd = c[7:].rstrip() - print "Executing " + cmd result = intr_system(cmd) failed = failed or (result != 0) print "result=" + str(result) + ", failed=" + str(failed) @@ -392,7 +391,7 @@ while not failed: time.sleep(0.5) if not lyx_exists(): print "LyX instance not found because of crash or assert !\n" - failed = true + failed = True else: print "Terminating lyx instance: " + str(lyx_pid) + "\n" intr_system("kill -9 " + str(lyx_pid), True); @@ -408,7 +407,7 @@ while not failed: lang = c[5:].rstrip() print "Setting LANG=" + lang + "\n" os.environ['LANG'] = lang - os.environ['LANGUAGE'] = lang + os.environ['LC_ALL'] = lang # If it doesn't exist, create a link //LC_MESSAGES/lyx.mo # pointing to the corresponding .gmo file. Needed to let lyx find the right translation files. # See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165613.html