GNOME Bugzilla – Bug 747892
validate:launcher: Handle git error properly
Last modified: 2015-06-24 14:44:26 UTC
_get_git_first_hash doesn't work properly when git is not installed on running system. This could happen on embedded target device like TV. subprocess.check_output() emits 'OSError' exception in that case, but not handled.
Created attachment 301595 [details] [review] Handle git error properly
Review of attachment 301595 [details] [review]: ::: validate/tools/gst-validate-launcher.in @@ +31,3 @@ os.chdir(path) res = subprocess.check_output(['git', 'rev-list', '--max-parents=0', 'HEAD']).rstrip('\n') + except: Would be better to also catch OSError instead of just accepting any exception.
Created attachment 301599 [details] [review] Handle git error properly patch #2 Thibault, thanks for review.
Thanks for your patch!
commit 102c13ed6ffa71fc0360da5694789bf1a6fca6fa Author: Young Han Lee <y.lee@lge.com> Date: Wed Apr 15 14:02:32 2015 +0900 validate:launcher: Handle git error properly 'OSError' exception is emitted but not handled properly when git is not installed on running system. https://bugzilla.gnome.org/show_bug.cgi?id=747892