[pitivi] tests: Fix our validate testsuite to match new behaviour
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] tests: Fix our validate testsuite to match new behaviour
- Date: Tue, 18 Jul 2017 15:21:14 +0000 (UTC)
commit 01bc11912dc5f10bcd53129ce1e1fc4224ec8a7d
Author: Thibault Saunier <tsaunier gnome org>
Date: Tue Jul 18 11:13:57 2017 -0400
tests: Fix our validate testsuite to match new behaviour
docs/Testing.md | 4 ++--
tests/meson.build | 2 +-
tests/{run_testsuite.py => ptv_testsuite.py} | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/docs/Testing.md b/docs/Testing.md
index b901e06..1afd3a3 100644
--- a/docs/Testing.md
+++ b/docs/Testing.md
@@ -18,11 +18,11 @@ You can run the unit tests with:
If you want to run only one particular unit test, use:
-`gst-validate-launcher tests/run_testsuite.py -t
tests.test_project.TestProjectManager.testLoadProjectFailedUnknownFormat`
+`gst-validate-launcher tests/ptv_testsuite.py -t
tests.test_project.TestProjectManager.testLoadProjectFailedUnknownFormat`
Listing tests:
-`gst-validate-launcher tests/run_testsuite.py -L`
+`gst-validate-launcher tests/ptv_testsuite.py -L`
### Writing unit tests
diff --git a/tests/meson.build b/tests/meson.build
index 76e19ef..481ce14 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -2,6 +2,6 @@ runtests = find_program('gst-validate-launcher', required : true)
if runtests.found()
test('Pitivi unit tests', runtests,
- args : [join_paths(meson.current_source_dir(), 'run_testsuite.py')],
+ args : [join_paths(meson.current_source_dir(), 'ptv_testsuite.py')],
env: ['PYTHONPATH=' + meson.source_root()], timeout: 500)
endif
diff --git a/tests/run_testsuite.py b/tests/ptv_testsuite.py
similarity index 96%
rename from tests/run_testsuite.py
rename to tests/ptv_testsuite.py
index 854129d..d53e568 100644
--- a/tests/run_testsuite.py
+++ b/tests/ptv_testsuite.py
@@ -38,7 +38,7 @@ class PitiviTest(Test):
"""A launcher.Test subclass for our unit tests."""
def build_arguments(self):
"""Builds subprocess arguments."""
- self.add_arguments('-m', 'unittest', self.classname)
+ self.add_arguments('-m', 'unittest', '.'.join(self.classname.split('.')[1:]))
def setup_tests(test_manager, options):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]