← Back to team overview

launchpad-dev team mailing list archive

No such option: --resume-layer

 

Has anyone seen this?  Some of my tests are failing *if* I run them in
the right (well, wrong) combination.

If I run message-sharing-merge-script.txt and, in the same test run,
also the tests in test_message_sharing_migration then all the tests in
the latter fail.  The doctest does succeed, and it doesn't trigger any
failures in other tests.

The failures I get look like:


lp.translations.scripts.tests.test_message_sharing_migration.TestTranslationMessageNonMerging.test_MessagesAreNotSharedAcrossPOTMsgSets
usage: test [options]

test: error: no such option: --resume-layer

Error in test
lp.translations.scripts.tests.test_message_sharing_migration.TestTranslationMessageNonMerging.test_MessagesAreNotSharedAcrossPOTMsgSets
Traceback (most recent call last):
   File
"/home/jtv/canonical/lp-branches/bug-403992/lib/lp/testing/__init__.py",
line 312, in run
     self.setUp()
   File
"/home/jtv/canonical/lp-branches/bug-403992/lib/lp/translations/scripts/tests/test_message_sharing_migration.py",
line 404, in setUp
     super(TestTranslationMessageNonMerging, self).setUpProduct()
   File
"/home/jtv/canonical/lp-branches/bug-403992/lib/lp/translations/scripts/tests/test_message_sharing_migration.py",
line 137, in setUpProduct
     super(TranslatedProductMixin, self).setUpProduct()
   File
"/home/jtv/canonical/lp-branches/bug-403992/lib/lp/translations/scripts/tests/test_message_sharing_migration.py",
line 44, in setUpProduct
     self.script = MessageSharingMerge('tms-merging-test')
   File
"/home/jtv/canonical/lp-branches/bug-403992/lib/lp/services/scripts/base.py",
line 123, in __init__
     self.options, self.args = self.parser.parse_args(args=test_args)
   File "/usr/lib/python2.4/optparse.py", line 1282, in parse_args
     self.error(err.msg)
   File "/usr/lib/python2.4/optparse.py", line 1464, in error
     self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
   File "/usr/lib/python2.4/optparse.py", line 1454, in exit
     sys.exit(status)
SystemExit: 2


What's particularly weird is that this is on a fresh branch off devel.
Why isn't buildbot complaining?


Jeroen



Follow ups