On Fri, Jan 25, 2013 at 3:20 AM, Kornel Benko <kor...@lyx.org> wrote: > Am Freitag, 25. Januar 2013 um 01:49:16, schrieb Scott Kostyshak > <skost...@lyx.org> > >> On Thu, Jan 24, 2013 at 9:26 PM, Tommaso Cucinotta <tomm...@lyx.org> >> wrote: > >> > On 25/01/13 02:01, Scott Kostyshak wrote: > >> >> And I still can't > >> >> get the tests to run under autotools. > >> > > >> > what problems were u experiencing ? > >> > > >> > T. > >> > > >> > >> [note: I solved this by using XVKBD_HACKED, but I will still send this > >> in case you are interested in trying to debug using a system xvkbd] > >> I just tried again, and I am having the same problems as reported here: > >> http://marc.info/?l=lyx-devel&m=135715423332292&w=3 > >> The log is at the bottom of that thread (don't read past > >> ["log_cmake.txt" (text/plain)]). > >> The only difference is that the first line after the traceback is now > >> on line 371 instead of 367 (this must be because of Kornel's patch). > >> > >> So it looks like the problem is here: > >> if not xvkbd_hacked: > >> subprocess.call([xvkbd_exe, "-xsendevent", "-window", lyx_window_name, > >> "-delay", actual_delay, "-text", keystr], > >> stdout = FNULL, stderr = FNULL) > > > > Oh, thanks for pointing at this one. It turned out, that I forgot to set > > the environment "XVKBD_HACKED" (in single-test.cmake) > > > >> It turns out that kvkbd_exe doesn't seem to work. If I set it manually > >> in keytest.py: > >> xvkbd_exe = '/usr/bin/xvkbd' > >> then things work fine. I can't seem to set this via exporting an > >> environment variable: executing this command befor 'make' does not > >> work: > >> export XVKBD_EXE='/usr/bin/xvkbd' > > > > Because it is overwritten by single-test.cmake:61 > > > >> Also, not thet xvkbd is in my path, so it doesn't seem like any of > >> that should be necessary anyway because of: > >> if xvkbd_exe is None: > >> xvkbd_exe = "xvkbd" > >> > >> Thus, I'm stumped. > >> > >> All of the above is true for an apt-get installed xvkbd and the > >> system-installed custom version of xvkbd. > >> > >> I just now tried with the custom xvkbd and XVKBD_HACKED and now the > >> autotests are all OK (thus, to be clear -- I can run the autotests now > >> and they all pass). > >> > >> Another question: > >> > >> In the README, it says > >> <<Whenever LyX is launched, in both cases, the LYX_USERDIR variable is > >> set to autotests/out-home, in order to rely on clean preferences > >> settings (use make clean or make without arguments in order to let > >> that folder be created again).>> > >> > >> But why then in keytest.py it seems like it tries to get it from the > >> environment variable? > >> lyx_userdir = os.environ.get('LYX_USERDIR') > > > > Set in single-test.cmake:56 > > > >> Also, how do I have it create the directory out-home/.lyx without the >> dialog? > > > > This is done from lyx itself. > > > >> Thanks for your help, > >> > >> Scott > > > > Now, most of the tests are OK. > > The following tests FAILED: > > 38 - autotests/findadv-15 (Failed) > > 39 - autotests/findadv-16 (Failed) > > 40 - autotests/findadv-17 (Failed) > > 44 - autotests/findadv-re-01 (Failed) > > 45 - autotests/findadv-re-02 (Failed) > > 46 - autotests/findadv-re-03 (Failed) > > > > > > Scott, please try the attached, this is one of the tests, which did not > work, unless > > inserted 'KK: \C\[Home]' at start of each consecutive subtest. >
Your new test still fails for me. It's strange that the [Home] fixed this one and the other one for you but not for me. Scott