Advanced find autotests now working again.

Make autotests work again on Ubuntu 12.04 (when launched from English language).
Add extra check and notification if wmctrl is missing.
This commit is contained in:
Tommaso Cucinotta 2012-10-13 00:47:06 +01:00
parent 9547725c38
commit 5c6f72b96e
2 changed files with 7 additions and 0 deletions

View File

@ -393,6 +393,7 @@ while not failed:
lang = c[5:].rstrip() lang = c[5:].rstrip()
print "Setting LANG=" + lang + "\n" print "Setting LANG=" + lang + "\n"
os.environ['LANG'] = lang os.environ['LANG'] = lang
os.environ['LANGUAGE'] = lang
# If it doesn't exist, create a link <locale_dir>/<country-code>/LC_MESSAGES/lyx<version-suffix>.mo # If it doesn't exist, create a link <locale_dir>/<country-code>/LC_MESSAGES/lyx<version-suffix>.mo
# pointing to the corresponding .gmo file. Needed to let lyx find the right translation files. # 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 # See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165613.html

View File

@ -15,6 +15,12 @@ if [ "$XVKBD_HACKED" != "" ]; then
fi fi
fi fi
if [ "$(which wmctrl)" == "" ]; then
echo "You need to install wmctrl first, try:"
echo " sudo apt-get install wmctrl"
exit -1;
fi
export XVKBD_EXE=../$XVKBD_EXE export XVKBD_EXE=../$XVKBD_EXE
export KEYTEST=../keytest.py export KEYTEST=../keytest.py
LYX_HOME=out-home LYX_HOME=out-home