horizon/tools
Akihiro Motoki ccaaf8cbb9 Fix regressions in unit_tests.sh during pytest mirgation
The pytest migration patch introduced a couple of regression in
tools/unit_tests.sh:

* We no longer cannot run a specific test explicitly
  (per python file, per test class, per specific test).
  Per module like openstack_dashboard, openstack_auth and horizon
  is the only possible way after the pytest migration.
* openstack_dashboard tests outside of openstack_dashboard/test/
  are not looked up when a subset is specified.

This commit restores the orginal behavior.

pytest uses a different way to specify tests.
We cannot use the style of python modules like
"openstack_auth.tests.unit.test_policy.PolicyLoaderTestCase.test_policy_file_load"
and we need to specify tests like file paths [1].

[1] https://docs.pytest.org/en/latest/usage.html#specifying-tests-selecting-tests

Closes-Bug: #1875123
Change-Id: Ic4b6c69d8a2ed774cce16521c4c4336f55ff737e
2020-04-26 20:39:10 +09:00
..
abandon_old_reviews.sh Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 12:25:40 +08:00
executable_files.txt Change horizon test runner to pytest 2020-04-03 13:47:18 +03:00
find_executables.sh Drop unnecessary executable flags 2017-12-27 21:32:48 +00:00
find_settings.py Add a upgrade_check management command 2019-03-01 15:43:13 +01:00
list-horizon-plugins.py Generate plugin registry based on releases repo 2019-12-23 18:43:24 +09:00
policy-diff.py Tools to check policy differences 2017-12-20 00:28:23 +09:00
selenium_tests.sh Change horizon test runner to pytest 2020-04-03 13:47:18 +03:00
unit_tests.sh Fix regressions in unit_tests.sh during pytest mirgation 2020-04-26 20:39:10 +09:00