← Back to team overview

launchpad-dev team mailing list archive

Re: No such option: --resume-layer

 

On Mon, Aug 3, 2009 at 11:18 AM, Jeroen Vermeulen<jtv@xxxxxxxxxxxxx> wrote:
> Has anyone seen this?  Some of my tests are failing *if* I run them in
> the right (well, wrong) combination.

I've seen it before. I can't recall if I worked out what was going on
or if there was a solution.

--resume-layer is the mechanism used to spawn a new process to run
tests for the next layer, because the current layer couldn't be torn
down.

Perhaps a current working directory issue, with the wrong 'test'
script being invoked?

>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~launchpad-dev
> Post to     : launchpad-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~launchpad-dev
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Stuart Bishop <stuart@xxxxxxxxxxxxxxxx>
http://www.stuartbishop.net/



References