← Back to team overview

sts-sponsors team mailing list archive

[Merge] ~bjornt/maas:perftest-no-implicit-path into maas:master

 

Björn Tillenius has proposed merging ~bjornt/maas:perftest-no-implicit-path into maas:master.

Commit message:
No implicit, hardcoded, path for bin/test.perf

bin/test.perf always passed src/maasperf to pyttest. This made it
impossible to run only a single test.

CI uses utilities/run-perf-tests-ci, which already explicitly passes
src/maasperf as the path.



Requested reviews:
  MAAS Maintainers (maas-maintainers)

For more details, see:
https://code.launchpad.net/~bjornt/maas/+git/maas/+merge/433441
-- 
Your team MAAS Maintainers is requested to review the proposed merge of ~bjornt/maas:perftest-no-implicit-path into maas:master.
diff --git a/src/maastesting/perftest.py b/src/maastesting/perftest.py
index ad8767a..666018e 100644
--- a/src/maastesting/perftest.py
+++ b/src/maastesting/perftest.py
@@ -112,7 +112,7 @@ def run_perf_tests(env):
         perf_tester = PerfTester(env.get("GIT_BRANCH"), env.get("GIT_HASH"))
 
         pytest_main(
-            args=["src/maasperf"] + cmd_args,
+            args=cmd_args,
         )
     finally:
         perf_test_finish(env.get("OUTPUT_FILE"))

Follow ups