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:
parent
fe01bf0d87
commit
e13863daec
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue