[reprotest] 01/02: Make no_clear_on_error optional; we don't want to pass it in everywhere e.g. tests
Ximin Luo
infinity0 at debian.org
Fri Sep 23 10:02:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository reprotest.
commit 2ea325f24b390e3a9b6eee691c4f1c6480c6f11f
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Sep 23 11:11:23 2016 +0200
Make no_clear_on_error optional; we don't want to pass it in everywhere e.g. tests
---
reprotest/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index a9777db..c81a580 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -31,7 +31,7 @@ adtlog.verbosity = 1
# approaches.
@_contextlib.contextmanager
-def start_testbed(args, temp_dir, no_clean_on_error):
+def start_testbed(args, temp_dir, no_clean_on_error=False):
'''This is a simple wrapper around adt_testbed that automates the
initialization and cleanup.'''
# Find the location of reprotest using setuptools and then get the
@@ -322,7 +322,7 @@ def build(script, source_root, dist_root, artifact_pattern, testbed, artifact_st
def check(build_command, artifact_pattern, virtual_server_args, source_root,
- no_clean_on_error, variations=VARIATIONS):
+ no_clean_on_error=False, variations=VARIATIONS):
# print(virtual_server_args)
with tempfile.TemporaryDirectory() as temp_dir, \
start_testbed(virtual_server_args, temp_dir, no_clean_on_error) as testbed:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reprotest.git
More information about the Reproducible-commits
mailing list