[reprotest] 01/03: doc: Fix syntax and drop old comments

Ximin Luo infinity0 at debian.org
Mon Nov 27 12:03:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository reprotest.

commit c44773b0502eb6f14670b6b865bc8e54a7308ebb
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Nov 27 11:55:53 2017 +0100

    doc: Fix syntax and drop old comments
---
 README.rst         |  6 +++---
 reprotest/build.py | 13 -------------
 2 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/README.rst b/README.rst
index a9f571c..2bdac3b 100644
--- a/README.rst
+++ b/README.rst
@@ -229,9 +229,9 @@ environment.variables
     reprotest should try to vary. Default is "REPROTEST_CAPTURE_ENVIRONMENT".
     Supports regex-based syntax e.g.
 
-    - PID=\d{1,6}
-    - HOME=(/\w{3,12}){1,4}
-    - (GO|PYTHON|)PATH=(/\w{3,12}){1,4}(:(/\w{3,12}){1,4}){0,4}
+    - PID=\\d{1,6}
+    - HOME=(/\\w{3,12}){1,4}
+    - (GO|PYTHON|)PATH=(/\\w{3,12}){1,4}(:(/\\w{3,12}){1,4}){0,4}
 
     Special cases:
 
diff --git a/reprotest/build.py b/reprotest/build.py
index 6a87b48..e260af1 100644
--- a/reprotest/build.py
+++ b/reprotest/build.py
@@ -197,10 +197,6 @@ cleanup() {{
 # TODO: the below ideally should *read the current value*, and pick
 # something that's different for the experiment.
 
-# FIXME: use taskset(1) and/or dpkg-buildpackage -J1
-# def cpu(script, env, tree):
-#     return script, env, tree
-
 def environment(ctx, build, vary):
     if not vary:
         return build
@@ -337,14 +333,6 @@ def locales(ctx, build, vary):
         loc = random.choice(['fr_CH.UTF-8', 'es_ES', 'ru_RU.CP1251', 'kk_KZ.RK1048', 'zh_CN'])
         return build.add_env('LANG', loc).add_env('LC_ALL', loc).add_env('LANGUAGE', '%s:fr' % loc)
 
-# FIXME: Linux-specific.  unshare --uts requires superuser privileges.
-# See misc.git/prebuilder/pbuilderhooks/D01_hostname, UTS unshare helps to
-# avoid hostname/domainname changes affect the main system.
-# def namespace(ctx, script, env, tree):
-#     # command1 = ['unshare', '--uts'] + command1
-#     # command2 = ['unshare', '--uts'] + command2
-#     return script, env, tree
-
 def exec_path(ctx, build, vary):
     if not vary:
         return build
@@ -472,7 +460,6 @@ VARIATIONS = collections.OrderedDict([
                     # otherwise other variations below can affect the address layout
     ('num_cpus', num_cpus),
     ('user_group', user_group),
-    # ('cpu', cpu),
     ('fileordering', fileordering),
     ('domain_host', domain_host), # needs to run after all other mounts have been set
     ('home', home),

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