]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
integration tests: testing tool can now be run by `poe integration`
authorVasek Sraier <git@vakabus.cz>
Sat, 13 Mar 2021 11:33:46 +0000 (12:33 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 8 Apr 2022 14:17:51 +0000 (16:17 +0200)
manager/integration/runner.py
manager/pyproject.toml

index 3e8e282ba05f481bb8e0a2259404df8f63867044..9464e64390633a084cbc2e96c3e957fdc4da3feb 100644 (file)
@@ -368,4 +368,7 @@ class TestRunner:
 
 
 if __name__ == "__main__":
+    # before running anything, set correct CWD
+    os.chdir(_get_git_root() / "integration")
+    # run the tests
     TestRunner.run()
index 23e6a0d3aade6879a8f7a3a29fed32315cf3fef0..6a81c1d2c21b46d032fd28ba9d7ba5776594eb6d 100644 (file)
@@ -40,6 +40,7 @@ clean = """
          .tox
 """
 tox = { cmd = "tox", help = "Run tests in tox" }
+integration = {cmd = "python integration/runner.py", help = "Run integration tests" }
 
 
 [tool.tox]