lib/drm_lib.sh: Bare-bones long option parsing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 12:35:22 +0000 (14:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 19:03:07 +0000 (21:03 +0200)
Just enough to stay compatible with simple subtests.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/drm_lib.sh

index 38befa8..d71e6ae 100755 (executable)
@@ -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