Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objective:

After PTL rpm Installation, the user has to cd to tests dir to execute test cases. We have -f option in pbs_benchpress but it supports only file. But we cannot use it to run a whole bunch of different tests.

when user runs pbs_benchpress -t testcase, it should do a path search – search current directory, next search test case in installed location.

Description

Currently, PTL doesn't support running test case from non-test directory using pbs_benchpress TestExecution option ('-t') i.e. a directory where all tests exist.

...

Forum discussion at : http://community.pbspro.org/t/enhancement-of-pbs-benchpress-to-run-from-non-tests-directory/1660

PR : https://github.com/PBSPro/pbspro/pull/1165

Details:

File : utils/plugins/ptl_test_loader.py

...

Assuming tests directory is moved to "/tmp/tests/" path and if user has set multiple paths in PTL_TESTS_DIR, then PTL will throw an error saying "Invalid directory specified in PTL_TESTS_DIR"

Ex: export PTL_TESTS_DIR=/tmp/tests:/home/user/tests