Comment 3 for bug 463321

Revision history for this message
Duncan McGreggor (oubiwann) wrote :

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'}

===============================================================================