~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

[r=wgrant][bug=1832477] Allow configuring the binary file retention
 period of a LiveFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4628
4628
 
4629
4629
    def makeLiveFS(self, registrant=None, owner=None, distroseries=None,
4630
4630
                   name=None, metadata=None, require_virtualized=True,
4631
 
                   date_created=DEFAULT):
 
4631
                   keep_binary_files_days=1, date_created=DEFAULT):
4632
4632
        """Make a new LiveFS."""
4633
4633
        if registrant is None:
4634
4634
            registrant = self.makePerson()
4642
4642
            metadata = {}
4643
4643
        livefs = getUtility(ILiveFSSet).new(
4644
4644
            registrant, owner, distroseries, name, metadata,
4645
 
            require_virtualized=require_virtualized, date_created=date_created)
 
4645
            require_virtualized=require_virtualized,
 
4646
            keep_binary_files_days=keep_binary_files_days,
 
4647
            date_created=date_created)
4646
4648
        IStore(livefs).flush()
4647
4649
        return livefs
4648
4650