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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just enough to stay compatible with simple subtests.

Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux