Commit 01bc1191 authored by Thibault Saunier's avatar Thibault Saunier

tests: Fix our validate testsuite to match new behaviour

parent 245cf1bf
......@@ -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
......
......@@ -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
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment