Hrm, it looks like this test failure in trunk might benefit from a similar fix:
[2]
=============================================================================== [FAIL]: landscape.tests.subunit.RemotedTestCase.test_upgrade
Traceback (most recent call last): Failure: landscape.tests.subunit.RemoteException: Traceback (most recent call last): File "/home/oubiwann/lab/Twisted/trunk/twisted/internet/defer.py", line 326, in _runCallbacks self.result = callback(self.result, *args, **kw) File "/home/oubiwann/lab/Canonical/Landscape/client/trunk/landscape/package/tests/test_releaseupgrader.py", line 216, in check_result "result-code": 0}]) File "/home/oubiwann/lab/Canonical/Landscape/client/trunk/landscape/tests/helpers.py", line 76, in assertMessages self.assertMessage(obtained_message, expected_message) File "/home/oubiwann/lab/Canonical/Landscape/client/trunk/landscape/tests/helpers.py", line 70, in assertMessage pprint.pformat(obtained))) FailTest: Messages don't match. Expected: {'operation-id': 100, 'result-code': 0, 'result-text': u'--frontend DistUpgradeViewNonInteractive\nFOO=bar\nPWD=/tmp/tmpS5SGYi/package/upgrade-tool\nout\n', 'status': 6, 'type': 'operation-result'} Obtained: {'operation-id': 100, 'result-code': 0, 'result-text': u'--frontend DistUpgradeViewNonInteractive\nFOO=bar\nPWD=/tmp/tmpS5SGYi/package/upgrade-tool\nSHLVL=1\n_=/usr/bin/env\nout\n', 'status': 6, 'type': 'operation-result'}
===============================================================================
Hrm, it looks like this test failure in trunk might benefit from a similar fix:
[2]
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == tests.subunit. RemotedTestCase .test_upgrade
[FAIL]: landscape.
Traceback (most recent call last): tests.subunit. RemoteException : Traceback (most recent call last): oubiwann/ lab/Twisted/ trunk/twisted/ internet/ defer.py" , line 326, in _runCallbacks self.result, *args, **kw) oubiwann/ lab/Canonical/ Landscape/ client/ trunk/landscape /package/ tests/test_ releaseupgrader .py", line 216, in check_result oubiwann/ lab/Canonical/ Landscape/ client/ trunk/landscape /tests/ helpers. py", line 76, in assertMessages assertMessage( obtained_ message, expected_message) oubiwann/ lab/Canonical/ Landscape/ client/ trunk/landscape /tests/ helpers. py", line 70, in assertMessage pformat( obtained) )) NonInteractive\ nFOO=bar\ nPWD=/tmp/ tmpS5SGYi/ package/ upgrade- tool\nout\ n', NonInteractive\ nFOO=bar\ nPWD=/tmp/ tmpS5SGYi/ package/ upgrade- tool\nSHLVL= 1\n_=/usr/ bin/env\ nout\n' ,
Failure: landscape.
File "/home/
self.result = callback(
File "/home/
"result-code": 0}])
File "/home/
self.
File "/home/
pprint.
FailTest: Messages don't match.
Expected:
{'operation-id': 100,
'result-code': 0,
'result-text': u'--frontend DistUpgradeView
'status': 6,
'type': 'operation-result'}
Obtained:
{'operation-id': 100,
'result-code': 0,
'result-text': u'--frontend DistUpgradeView
'status': 6,
'type': 'operation-result'}
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==