projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91f536d
)
lib/drm_lib.sh: Bare-bones long option parsing
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 12:35:22 +0000
(14:35 +0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/tests/drm_lib.sh
b/tests/drm_lib.sh
index
38befa8
..
d71e6ae
100755
(executable)
--- 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