D-Bus testing: support ENV with = inside variable value

Found while (accidentally) setting an ENV variable with a = inside the
value part: splitting into name and value may only split once, at the first
equal sign.
This commit is contained in:
Patrick Ohly 2012-11-25 17:53:52 -08:00
parent fe01bf0d87
commit e13863daec
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class DBusUtil(Timeout):
# set additional environment variables for the test run,
# as defined by @property("ENV", "foo=bar x=y")
for assignment in self.getTestProperty("ENV", "").split():
var, value = assignment.split("=")
var, value = assignment.split("=", 1)
env[var] = value
# always print all debug output directly (no output redirection),