[Intel-gfx] [PATCH 2/2] lib/drm_lib.sh: Bare-bones long option parsing

Daniel Vetter daniel.vetter at ffwll.ch
Wed Jul 23 14:37:31 CEST 2014


Just enough to stay compatible with simple subtests.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/drm_lib.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh
index 38befa88acb8..d71e6ae2223e 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
-- 
2.0.1




More information about the Intel-gfx mailing list