mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate:launcher: Error out if valgrind is not available on the system
Summary: When the user wants to use valgrind, make sure it is present on the system before doing anything Reviewers: gdesmott Differential Revision: http://phabricator.freedesktop.org/D104
This commit is contained in:
parent
86efbffa32
commit
76eedece5c
1 changed files with 8 additions and 0 deletions
|
@ -275,6 +275,14 @@ class LauncherConfig(Loggable):
|
||||||
self.testsuites_dir == DEFAULT_TESTSUITES_DIR:
|
self.testsuites_dir == DEFAULT_TESTSUITES_DIR:
|
||||||
self.testsuites_dir = os.path.join(self.main_dir, self.clone_dir,
|
self.testsuites_dir = os.path.join(self.main_dir, self.clone_dir,
|
||||||
"testsuites")
|
"testsuites")
|
||||||
|
if self.valgrind:
|
||||||
|
try:
|
||||||
|
subprocess.check_output("valgrind --help", shell=True)
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
printc("Want to use valgrind, but not avalaible on the system",
|
||||||
|
Colors.FAIL)
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def set_http_server_dir(self, path):
|
def set_http_server_dir(self, path):
|
||||||
|
|
Loading…
Reference in a new issue