[pitivi/1.0] tests: Handle running the testsuite with GstValidate 1.12
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/1.0] tests: Handle running the testsuite with GstValidate 1.12
- Date: Sat, 26 Aug 2017 12:30:32 +0000 (UTC)
commit 0aa7a6a7864280b3c06b81a36ffe3d90350da082
Author: Thibault Saunier <tsaunier gnome org>
Date: Sat Aug 26 09:24:42 2017 -0300
tests: Handle running the testsuite with GstValidate 1.12
tests/ptv_testsuite.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/ptv_testsuite.py b/tests/ptv_testsuite.py
index ee3c236..c089118 100644
--- a/tests/ptv_testsuite.py
+++ b/tests/ptv_testsuite.py
@@ -31,6 +31,7 @@ sys.path.insert(0, os.path.join(CDIR, '..'))
import tests # noqa
# pylint: disable=import-error
from launcher.baseclasses import Test # noqa
+from launcher.config import GST_VALIDATE_TESTSUITE_VERSION # noqa
# pylint: disable=too-few-public-methods
@@ -38,7 +39,10 @@ class PitiviTest(Test):
"""A launcher.Test subclass for our unit tests."""
def build_arguments(self):
"""Builds subprocess arguments."""
- self.add_arguments('-m', 'unittest', '.'.join(self.classname.split('.')[1:]))
+ if GST_VALIDATE_TESTSUITE_VERSION == "1.12":
+ self.add_arguments('-m', 'unittest', self.classname)
+ else:
+ 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]