Commit afa55f18 authored by Dylan Baker's avatar Dylan Baker

framework: Fix piglit-command

This actually fixes the help message for the piglit command, but doesn't
break using other commands, like the last patch.
Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
parent 490e1ef0
......@@ -162,7 +162,11 @@ def main():
# example), and then pass the arguments that this parser doesn't know about
# to that executable
parsed, args = parser.parse_known_args(input_)
returncode = parsed.func(args)
try:
returncode = parsed.func(args)
except AttributeError:
parser.print_help()
sys.exit(1)
sys.exit(returncode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment