mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +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
|
VALGRIND_ERROR_CODE = 20
|
||||||
|
|
||||||
VALIDATE_OVERRIDE_EXTENSION = ".override"
|
VALIDATE_OVERRIDE_EXTENSION = ".override"
|
||||||
COREDUMP_SIGNALS = [-signal.SIGQUIT, -signal.SIGILL, -signal.SIGABRT,
|
COREDUMP_SIGNALS = [-getattr(signal, s) for s in [
|
||||||
-signal.SIGFPE, -signal.SIGSEGV, -signal.SIGBUS, -signal.SIGSYS,
|
'SIGQUIT', 'SIGILL', 'SIGABRT', 'SIGFPE', 'SIGSEGV', 'SIGBUS', 'SIGSYS',
|
||||||
-signal.SIGTRAP, -signal.SIGXCPU, -signal.SIGXFSZ, -signal.SIGIOT,
|
'SIGTRAP', 'SIGXCPU', 'SIGXFSZ', 'SIGIOT'] if hasattr(signal, s)] + [139]
|
||||||
139]
|
|
||||||
|
|
||||||
|
|
||||||
class Test(Loggable):
|
class Test(Loggable):
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
LIBDIR = '@LIBDIR@'
|
LIBDIR = r'@LIBDIR@'
|
||||||
DATADIR = '@DATADIR@'
|
DATADIR = r'@DATADIR@'
|
||||||
BUILDDIR = '@BUILDDIR@'
|
BUILDDIR = r'@BUILDDIR@'
|
||||||
GST_VALIDATE_TESTSUITE_VERSION = '@GST_VALIDATE_TESTSUITE_VERSION@'
|
GST_VALIDATE_TESTSUITE_VERSION = '@GST_VALIDATE_TESTSUITE_VERSION@'
|
||||||
|
|
|
@ -21,9 +21,9 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
LIBDIR = '@LIBDIR@'
|
LIBDIR = r'@LIBDIR@'
|
||||||
BUILDDIR = '@BUILDDIR@'
|
BUILDDIR = r'@BUILDDIR@'
|
||||||
SRCDIR = '@SRCDIR@'
|
SRCDIR = r'@SRCDIR@'
|
||||||
GIT_FIRST_HASH = 'da962d096af9460502843e41b7d25fdece7ff1c2'
|
GIT_FIRST_HASH = 'da962d096af9460502843e41b7d25fdece7ff1c2'
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,11 +47,12 @@ def _in_devel():
|
||||||
|
|
||||||
|
|
||||||
def _add_gst_launcher_path():
|
def _add_gst_launcher_path():
|
||||||
|
f = os.path.abspath(__file__)
|
||||||
if _in_devel():
|
if _in_devel():
|
||||||
print("Running with development path")
|
print("Running with development path")
|
||||||
dir_ = os.path.dirname(os.path.abspath(__file__))
|
dir_ = os.path.dirname(os.path.abspath(__file__))
|
||||||
root = os.path.split(dir_)[0]
|
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
|
# Make sure to have the configured config.py in the python path
|
||||||
sys.path.insert(0, os.path.abspath(os.path.join(BUILDDIR, "..")))
|
sys.path.insert(0, os.path.abspath(os.path.join(BUILDDIR, "..")))
|
||||||
root = os.path.abspath(os.path.join(SRCDIR, "../"))
|
root = os.path.abspath(os.path.join(SRCDIR, "../"))
|
||||||
|
|
Loading…
Reference in a new issue