lib/drm_lib.sh: Bare-bones long option parsing

Just enough to stay compatible with simple subtests.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2014-07-23 14:35:22 +02:00
parent 91f536dc42
commit 556ebc7a7c

View File

@ -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