From 543e7a983a71e026c3ce890e232c0ebc47562ae9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 8 Jun 2017 12:16:24 -0400 Subject: [PATCH] validate:launcher: Do not which(None), the rtsp-server command is unset if not avalaible https://bugzilla.gnome.org/show_bug.cgi?id=783551 --- validate/launcher/apps/gstvalidate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/launcher/apps/gstvalidate.py b/validate/launcher/apps/gstvalidate.py index ed0f992acb..957511e646 100644 --- a/validate/launcher/apps/gstvalidate.py +++ b/validate/launcher/apps/gstvalidate.py @@ -290,7 +290,7 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator): os.path.basename(minfo.media_descriptor.get_clean_name())) def populate_tests(self, uri_minfo_special_scenarios, scenarios): - test_rtsp = which(GST_VALIDATE_RTSP_SERVER_COMMAND) + test_rtsp = GST_VALIDATE_RTSP_SERVER_COMMAND if not test_rtsp: printc("\n\nRTSP server not available, you should make sure" " that %s is available in your $PATH." % GST_VALIDATE_RTSP_SERVER_COMMAND,