diff options
author | Cleber Rosa <crosa@redhat.com> | 2019-11-04 10:13:19 -0500 |
---|---|---|
committer | Cleber Rosa <crosa@redhat.com> | 2019-12-16 11:43:36 -0500 |
commit | 2d320ad18876ac263049ee7c5425052f2661f706 (patch) | |
tree | 0835641fe6d802e7c592e36dd5381d0ec125aa0f /tests | |
parent | ba21bde930f50360b135268e4e69a0ad561ddca2 (diff) | |
download | qemu-2d320ad18876ac263049ee7c5425052f2661f706.zip qemu-2d320ad18876ac263049ee7c5425052f2661f706.tar.gz qemu-2d320ad18876ac263049ee7c5425052f2661f706.tar.bz2 |
Acceptance tests: use relative location for tests
An Avocado Test ID[1] is composed by a number of components, but it
starts with the Test Name, usually a file system location that was
given to the loader.
Because the source directory is being given as a prefix to the
"tests/acceptance" directory containing the acceptance tests, the test
names will needlessly include the directory the user is using to host
the QEMU sources (and/or build tree).
Let's remove the source dir (or a build dir) from the path given to
the test loader. This should give more constant names, and when using
result servers and databases, it should give the same test names
across executions from different people or from different directories.
[1] - https://avocado-framework.readthedocs.io/en/69.0/ReferenceGuide.html#test-id
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20191104151323.9883-5-crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Makefile.include b/tests/Makefile.include index 8566f5f..82dab2a 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -1185,7 +1185,7 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) --show=$(AVOCADO_SHOW) run --job-results-dir=$(TESTS_RESULTS_DIR) \ --filter-by-tags-include-empty --filter-by-tags-include-empty-key \ $(AVOCADO_TAGS) \ - --failfast=on $(SRC_PATH)/tests/acceptance, \ + --failfast=on tests/acceptance, \ "AVOCADO", "tests/acceptance") # Consolidated targets |