def makeScript(self, distribution, run_setup=True, extra_args=None):
     """Create a script for testing."""
     test_args = []
     if distribution is not None:
         test_args.extend(["-d", distribution.name])
     if extra_args is not None:
         test_args.extend(extra_args)
     script = GenerateExtraOverrides(test_args=test_args)
     script.logger = DevNullLogger()
     script.txn = FakeTransaction()
     if distribution is not None and run_setup:
         script.setUp()
     else:
         script.distribution = distribution
     return script