tests: Skip Python daemon tests in directory with non-ASCII name.
authorBen Pfaff <blp@nicira.com>
Fri, 25 Oct 2013 16:22:36 +0000 (09:22 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 25 Oct 2013 18:04:30 +0000 (11:04 -0700)
commite6e590a73ebdf2cf8a7cdc264c45c9863617e524
tree108162fe9030ba4f399c8f7bd48bd70c8f9f1fc4
parent581d7da8293b5c6009c27428137b817cc69b11c0
tests: Skip Python daemon tests in directory with non-ASCII name.

The Debian autobuild machines run their builds inside a top-level
directory named /«BUILDDIR».  That name contains two non-ASCII characters
that cause the Python code in the interface-reconfigure and ovs-monitor-ipsec
tests to fail.  The problem seems to be related to the locale, because
switching to a UTF-8 locale allows the tests to proceed farther but does
not fix the problem.  I was not able to easily fix the actual problem.
Web searches turn up articles that imply that the problem is not
reasonably fixable with Python 2.x, e.g.:
    http://stackoverflow.com/a/11742928

This commit instead avoids the problem by skipping these tests if the
current working directory's name contains non-ASCII characters.  This is
a legitimate solution only because interface-reconfigure and
ovs-monitor-ipsec run from initscripts and thus their current working
directories are system directories.  (Also, the current working directory
matters much less when run in a real environment because the --root-prefix
option that causes the issue is not used in a real environment.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/atlocal.in
tests/interface-reconfigure.at
tests/ovs-monitor-ipsec.at