From patchwork Thu Mar 21 16:23:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Lespiau X-Patchwork-Id: 2314941 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 6C239DF264 for ; Thu, 21 Mar 2013 16:27:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 26744E5FFE for ; Thu, 21 Mar 2013 09:27:13 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B0CFE60C5 for ; Thu, 21 Mar 2013 09:24:09 -0700 (PDT) Received: by mail-we0-f182.google.com with SMTP id t57so2543471wey.27 for ; Thu, 21 Mar 2013 09:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=90UQivqlgCZXSJ9+ilX786uMdLlinRFyeVDRaiGbzdA=; b=pyfineFF4Q8PDVIUanNj8IF52V8YEUW6u7SQDrBcGcQMp2RImg70mMrmCULbgUFw5L XDw52xMs6r1z62zAC5KknbeBSU4Zzfb+0X/bBxyxK2KrM+HAGMY5eb/VaBPFtpM1foNo 2S6Njv/JdpMsccElPbwTFFAXL9aQMyyob8o3c03Mi6lbW2jOxmWXBsEvqMSVTCxdtVHM hwEIYWgAXG14OEqBZ8FON7eJi6CuS5LUQ0JS8W5Lefdu3kyWwf8S1qeifj/xOyqsE81t +IvisjGyTuC3AMsDdvmuB4j/siqeAgN3KdE4BgmKMTS+1Hrj+Gtn47qgX3RBx1seY0iW 7NmA== X-Received: by 10.180.74.131 with SMTP id t3mr6024229wiv.23.1363883048559; Thu, 21 Mar 2013 09:24:08 -0700 (PDT) Received: from localhost.localdomain ([83.217.123.106]) by mx.google.com with ESMTPS id ed6sm6242601wib.9.2013.03.21.09.24.07 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Mar 2013 09:24:07 -0700 (PDT) From: Damien Lespiau To: intel-gfx@lists.freedesktop.org Date: Thu, 21 Mar 2013 16:23:58 +0000 Message-Id: <1363883038-8698-1-git-send-email-damien.lespiau@gmail.com> X-Mailer: git-send-email 1.7.11.7 Subject: [Intel-gfx] [PATCH i-g-t] lib: Make sure we can also use the short form of the subtest options X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org From: Damien Lespiau Signed-off-by: Damien Lespiau --- 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':