[Intel-gfx] [PATCH i-g-t] lib: Make sure we can also use the short form of the subtest options

Damien Lespiau damien.lespiau at gmail.com
Thu Mar 21 17:23:58 CET 2013


From: Damien Lespiau <damien.lespiau at intel.com>

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 lib/drmtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/drmtest.c b/lib/drmtest.c
index 641028c..2d4fc89 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -530,7 +530,7 @@ void drmtest_subtest_init(int argc, char **argv)
 
 	/* supress getopt errors about unknown options */
 	opterr = 0;
-	while((c = getopt_long(argc, argv, "",
+	while((c = getopt_long(argc, argv, "lr:",
 			       long_options, &option_index)) != -1) {
 		switch(c) {
 		case 'l':
-- 
1.7.11.7




More information about the Intel-gfx mailing list