From 556ebc7a7cdec2f5cfa90c8503e0a7e9493154c5 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 23 Jul 2014 14:35:22 +0200 Subject: [PATCH] lib/drm_lib.sh: Bare-bones long option parsing Just enough to stay compatible with simple subtests. Signed-off-by: Daniel Vetter --- tests/drm_lib.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh index 38befa88..d71e6ae2 100755 --- a/tests/drm_lib.sh +++ b/tests/drm_lib.sh @@ -1,4 +1,17 @@ #!/bin/sh + +# hacked-up long option parsing +for arg in $@ ; do + case $arg in + --list-subtests) + exit 79 + ;; + --run-subtest) + exit 79 + ;; + esac +done + die() { echo "$@" exit 1