mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
validate:launcher: Fix running on windows
This commit is contained in:
parent
2863986ea3
commit
f6d0636466
3 changed files with 11 additions and 11 deletions
|
@ -51,10 +51,9 @@ TIMEOUT_FACTOR = float(os.environ.get("TIMEOUT_FACTOR", 1))
|
|||
VALGRIND_ERROR_CODE = 20
|
||||
|
||||
VALIDATE_OVERRIDE_EXTENSION = ".override"
|
||||
COREDUMP_SIGNALS = [-signal.SIGQUIT, -signal.SIGILL, -signal.SIGABRT,
|
||||
-signal.SIGFPE, -signal.SIGSEGV, -signal.SIGBUS, -signal.SIGSYS,
|
||||
-signal.SIGTRAP, -signal.SIGXCPU, -signal.SIGXFSZ, -signal.SIGIOT,
|
||||
139]
|
||||
COREDUMP_SIGNALS = [-getattr(signal, s) for s in [
|
||||
'SIGQUIT', 'SIGILL', 'SIGABRT', 'SIGFPE', 'SIGSEGV', 'SIGBUS', 'SIGSYS',
|
||||
'SIGTRAP', 'SIGXCPU', 'SIGXFSZ', 'SIGIOT'] if hasattr(signal, s)] + [139]
|
||||
|
||||
|
||||
class Test(Loggable):
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
# Boston, MA 02110-1301, USA.
|
||||
|
||||
LIBDIR = '@LIBDIR@'
|
||||
DATADIR = '@DATADIR@'
|
||||
BUILDDIR = '@BUILDDIR@'
|
||||
LIBDIR = r'@LIBDIR@'
|
||||
DATADIR = r'@DATADIR@'
|
||||
BUILDDIR = r'@BUILDDIR@'
|
||||
GST_VALIDATE_TESTSUITE_VERSION = '@GST_VALIDATE_TESTSUITE_VERSION@'
|
||||
|
|
|
@ -21,9 +21,9 @@ import os
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
LIBDIR = '@LIBDIR@'
|
||||
BUILDDIR = '@BUILDDIR@'
|
||||
SRCDIR = '@SRCDIR@'
|
||||
LIBDIR = r'@LIBDIR@'
|
||||
BUILDDIR = r'@BUILDDIR@'
|
||||
SRCDIR = r'@SRCDIR@'
|
||||
GIT_FIRST_HASH = 'da962d096af9460502843e41b7d25fdece7ff1c2'
|
||||
|
||||
|
||||
|
@ -47,11 +47,12 @@ def _in_devel():
|
|||
|
||||
|
||||
def _add_gst_launcher_path():
|
||||
f = os.path.abspath(__file__)
|
||||
if _in_devel():
|
||||
print("Running with development path")
|
||||
dir_ = os.path.dirname(os.path.abspath(__file__))
|
||||
root = os.path.split(dir_)[0]
|
||||
elif __file__.startswith(BUILDDIR):
|
||||
elif f.startswith(BUILDDIR):
|
||||
# Make sure to have the configured config.py in the python path
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(BUILDDIR, "..")))
|
||||
root = os.path.abspath(os.path.join(SRCDIR, "../"))
|
||||
|
|
Loading…
Reference in a new issue