validate:launcher: Do not which(None), the rtsp-server command is unset if not avalaible

https://bugzilla.gnome.org/show_bug.cgi?id=783551
This commit is contained in:
Thibault Saunier 2017-06-08 12:16:24 -04:00
parent 905a15c014
commit 543e7a983a

View file

@ -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,