You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/08/30 22:12:38 UTC

[incubator-ponymail-unit-tests] branch master updated (55492c9 -> 3b55de3)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git.


    from 55492c9  Typo
     new 229c160  Allow environment to be overridden
     new 58488a6  Not necessary to override hash seed
     new 3b55de3  No longer necessary for current ponymail

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 runall.py                                                     | 8 ++++++--
 yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml        | 1 -
 yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml | 1 -
 yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml         | 1 -
 yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml        | 2 --
 yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml | 2 --
 yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml         | 2 --
 yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml   | 1 -
 yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml           | 1 -
 yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml          | 2 --
 yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml   | 2 --
 11 files changed, 6 insertions(+), 17 deletions(-)


[incubator-ponymail-unit-tests] 02/03: Not necessary to override hash seed

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git

commit 58488a6fde8ed5e89ffdb40ed4ecd0921bf38b56
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 30 23:10:34 2020 +0100

    Not necessary to override hash seed
---
 yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml | 1 -
 yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml         | 1 -
 yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml        | 2 --
 yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml | 2 --
 4 files changed, 6 deletions(-)

diff --git a/yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml b/yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
index c66c391..818a9f6 100644
--- a/yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
+++ b/yaml/set02/gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
@@ -3,7 +3,6 @@ args:
     --generate gen-maven-dev-2017-11-mailarchivesao_pmfoal.yaml --root ../pmfoal
   env:
     MOCK_GMTIME: "0"
-    PYTHONHASHSEED: "0"
 generators:
   corpus/maven-dev-2017-11-mailarchivesao.mbox:
     cluster:
diff --git a/yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml b/yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml
index b51e3e1..0c9ffcb 100644
--- a/yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml
+++ b/yaml/set02/gen-maven-dev-2017-11-mboxvm_pmfoal.yaml
@@ -3,7 +3,6 @@ args:
     gen-maven-dev-2017-11-mboxvm_pmfoal.yaml --root ../pmfoal
   env:
     MOCK_GMTIME: "0"
-    PYTHONHASHSEED: "0"
 generators:
   corpus/maven-dev-2017-11-mboxvm.mbox:
     cluster:
diff --git a/yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml b/yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml
index 0bf54d5..39795c9 100644
--- a/yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml
+++ b/yaml/set02/par-maven-dev-2017-11-listsao_pmfoal.yaml
@@ -2,8 +2,6 @@ args:
   cmd: tests/test-parsing.py --mbox corpus/maven-dev-2017-11-listsao.mbox --generate
     par-maven-dev-2017-11-listsao_pmfoal.yaml --root ../pmfoal
   parse_html: false
-  env:
-    PYTHONHASHSEED: "0"
 parsing:
   corpus/maven-dev-2017-11-listsao.mbox:
   - index: 0
diff --git a/yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml b/yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
index 823ce68..a45b02f 100644
--- a/yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
+++ b/yaml/set02/par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml
@@ -2,8 +2,6 @@ args:
   cmd: tests/test-parsing.py --mbox corpus/maven-dev-2017-11-mailarchivesao.mbox --generate
     par-maven-dev-2017-11-mailarchivesao_pmfoal.yaml --root ../pmfoal
   parse_html: false
-  env:
-    PYTHONHASHSEED: "0"
 parsing:
   corpus/maven-dev-2017-11-mailarchivesao.mbox:
   - index: 0


[incubator-ponymail-unit-tests] 03/03: No longer necessary for current ponymail

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git

commit 3b55de3ce21c24963b3255ec156a42483476e2e0
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 30 23:11:51 2020 +0100

    No longer necessary for current ponymail
---
 yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml        | 1 -
 yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml | 1 -
 yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml         | 1 -
 yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml        | 2 --
 yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml | 2 --
 yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml         | 2 --
 6 files changed, 9 deletions(-)

diff --git a/yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml b/yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml
index 3cf9a37..b3bda68 100644
--- a/yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml
+++ b/yaml/set01/gen-maven-dev-2017-11-listsao_ponymail.yaml
@@ -3,7 +3,6 @@ args:
     gen-maven-dev-2017-11-listsao_ponymail.yaml --root ../ponymail
   env:
     MOCK_GMTIME: "0"
-    PYTHONHASHSEED: "0"
 generators:
   corpus/maven-dev-2017-11-listsao.mbox:
     cluster:
diff --git a/yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml b/yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml
index 520be54..05a3161 100644
--- a/yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml
+++ b/yaml/set01/gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml
@@ -3,7 +3,6 @@ args:
     --generate gen-maven-dev-2017-11-mailarchivesao_ponymail.yaml --root ../ponymail
   env:
     MOCK_GMTIME: "0"
-    PYTHONHASHSEED: "0"
 generators:
   corpus/maven-dev-2017-11-mailarchivesao.mbox:
     cluster:
diff --git a/yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml b/yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml
index 1f22f77..964e7a9 100644
--- a/yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml
+++ b/yaml/set01/gen-maven-dev-2017-11-mboxvm_ponymail.yaml
@@ -3,7 +3,6 @@ args:
     gen-maven-dev-2017-11-mboxvm_ponymail.yaml --root ../ponymail
   env:
     MOCK_GMTIME: "0"
-    PYTHONHASHSEED: "0"
 generators:
   corpus/maven-dev-2017-11-mboxvm.mbox:
     cluster:
diff --git a/yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml b/yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml
index 03f15a2..7a5cbcc 100644
--- a/yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml
+++ b/yaml/set01/par-maven-dev-2017-11-listsao_ponymail.yaml
@@ -2,8 +2,6 @@ args:
   cmd: tests/test-parsing.py --mbox corpus/maven-dev-2017-11-listsao.mbox --generate
     par-maven-dev-2017-11-listsao_ponymail.yaml --root ../ponymail
   parse_html: false
-  env:
-    PYTHONHASHSEED: "0"
 parsing:
   corpus/maven-dev-2017-11-listsao.mbox:
   - index: 0
diff --git a/yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml b/yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml
index af58b59..d67a8b0 100644
--- a/yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml
+++ b/yaml/set01/par-maven-dev-2017-11-mailarchivesao_ponymail.yaml
@@ -2,8 +2,6 @@ args:
   cmd: tests/test-parsing.py --mbox corpus/maven-dev-2017-11-mailarchivesao.mbox --generate
     par-maven-dev-2017-11-mailarchivesao_ponymail.yaml --root ../ponymail
   parse_html: false
-  env:
-    PYTHONHASHSEED: "0"
 parsing:
   corpus/maven-dev-2017-11-mailarchivesao.mbox:
   - index: 0
diff --git a/yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml b/yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml
index d2330d8..0bae913 100644
--- a/yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml
+++ b/yaml/set01/par-maven-dev-2017-11-mboxvm_ponymail.yaml
@@ -2,8 +2,6 @@ args:
   cmd: tests/test-parsing.py --mbox corpus/maven-dev-2017-11-mboxvm.mbox --generate
     par-maven-dev-2017-11-mboxvm_ponymail.yaml --root ../ponymail
   parse_html: false
-  env:
-    PYTHONHASHSEED: "0"
 parsing:
   corpus/maven-dev-2017-11-mboxvm.mbox:
   - index: 0


[incubator-ponymail-unit-tests] 01/03: Allow environment to be overridden

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git

commit 229c160937ea322b3199ab0d5623b67f0f47314e
Author: Sebb <se...@apache.org>
AuthorDate: Sun Aug 30 23:07:54 2020 +0100

    Allow environment to be overridden
---
 runall.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/runall.py b/runall.py
index 229970b..9bac2c5 100755
--- a/runall.py
+++ b/runall.py
@@ -41,10 +41,14 @@ if __name__ == '__main__':
     for spec_file in spec_files:
         with open(spec_file, 'r') as f:
             yml = yaml.safe_load(f)
-            env = None # Environment variable override, e.g. MOCK_GMTIME
+            env = os.environ # always pass parent environ
             for test_type in yml:
                 if test_type == 'args':
-                    env = yml[test_type].get("env", None)
+                     # Environment variable override, e.g. MOCK_GMTIME
+                    env_ = yml[test_type].get("env", None)
+                    if env_:
+                        for key, val in env_.items():
+                            env[key] = val
                     continue
                 tests_total += 1
                 print("Running '%s' tests from %s..." % (test_type, spec_file))