[reprotest] 02/08: captures_environment -> environment

Ximin Luo infinity0 at debian.org
Thu Dec 1 22:06:21 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 7afa523cd7556d5d61b494163d3c302491554650
Author: Ximin Luo <infinity0 at debian.org>
Date:   Thu Dec 1 19:34:01 2016 +0100

    captures_environment -> environment
---
 README.md             | 2 +-
 reprotest/__init__.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index c3edef7..7824bd7 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@ directory.  A sample config file is below.
     artifact = dist/reprotest-0.2.tar.gz
     source_root = reprotest/
     variations =
-      captures_environment
+      environment
       domain_host
       filesystem
       home
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index c894222..2b7778e 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -169,7 +169,7 @@ class Script(collections.namedtuple('_Script', 'build_command setup cleanup')):
 #     yield script, env, tree
 
 @_contextlib.contextmanager
-def captures_environment(script, env, tree, testbed):
+def environment(script, env, tree, testbed):
     new_env = add(env.experiment, 'CAPTURE_ENVIRONMENT',
                   'i_capture_the_environment')
     yield script, Pair(env.control, new_env), tree
@@ -302,7 +302,7 @@ def umask(script, env, tree, testbed):
 # The order of the variations *is* important, because the command to
 # be executed in the container needs to be built from the inside out.
 VARIATIONS = types.MappingProxyType(collections.OrderedDict([
-    ('captures_environment', captures_environment),
+    ('environment', environment),
     # ('cpu', cpu),
     # ('domain_host', domain_host),
     ('fileordering', fileordering),

-- 
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