From 7aede0f149beec9529beff7f33159800141bf4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Apr 2023 19:47:55 +0200 Subject: [PATCH] Move the canonicalization method to the ci --- .github/workflows/ci.yml | 4 +++- tests/start_test.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c8a252..a827cd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,9 @@ jobs: command: build args: --verbose --all-features - name: Run the integration test - run: ./tests/start_test.py + run: ./tests/start_test.py "simple/simple" + - name: Run the integration test + run: ./tests/start_test.py "relaxed/relaxed" cargo-fmt: name: Cargo fmt runs-on: ubuntu-latest diff --git a/tests/start_test.py b/tests/start_test.py index 0ce49b3..3478e55 100755 --- a/tests/start_test.py +++ b/tests/start_test.py @@ -214,10 +214,12 @@ def start_tests(test_dir, smtp_port, canonicalization): def main(): + method = "relaxed/relaxed" + if len(sys.argv) > 1: + method = sys.argv[1] test_dir = pathlib.Path(__file__).parent.resolve() os.chdir(test_dir.parent) - start_tests(test_dir, DEFAULT_PORT, "simple/simple") - start_tests(test_dir, DEFAULT_PORT, "relaxed/relaxed") + start_tests(test_dir, DEFAULT_PORT, method) if __name__ == "__main__":