From patchwork Mon Nov 3 11:31:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5216351 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 46C24C11AD for ; Mon, 3 Nov 2014 11:31:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 652EE2010F for ; Mon, 3 Nov 2014 11:31:11 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 95F152014A for ; Mon, 3 Nov 2014 11:31:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 23BCF6E4F9; Mon, 3 Nov 2014 03:31:10 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 507246E4F7 for ; Mon, 3 Nov 2014 03:31:08 -0800 (PST) Received: by mail-wg0-f45.google.com with SMTP id x12so12250481wgg.4 for ; Mon, 03 Nov 2014 03:31:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Szx4vrbFEIkeUFC3fqY01Bilaonqesuery95kTNLIJA=; b=ghJr8xJfd+qrZG2AFNdKPCyPKwc0tMWuXzDegBpTQCVpNjtnWlTAIskiAqb+4yYnzM ets/OFqIHQFqkXNF2pocxcKJN4fdrw6PPalvel8Yhw/w9TIs3cIyFEcDf5PiuUJ6v0mf DXp6bsdn/SprFGTboiswIbrEw0XbnP+76I48hDOyU6pgFjpbYGI252MLBVYBQtYEi0KC q8q5owI7Ko3fddiRW/Nvijpt9frLY/wbFF6fWTCiu5WWq4d7HhCdVGe18zbqioRGIw21 KcUEXyEGf5arbb9thWsZzQUo4AcqGoVocOGaEUwrQuMeXhmkqDcWbCt5A6v3Wxose58i +TTw== X-Gm-Message-State: ALoCoQl/ki0kiboQT65j2ip48wVljVk3ERAKZnxZqYtS+DT3pwDVwkvIfQI75VEs6hDrpyCf9Oap X-Received: by 10.180.11.168 with SMTP id r8mr15447456wib.74.1415014267467; Mon, 03 Nov 2014 03:31:07 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id p3sm21845688wjf.49.2014.11.03.03.31.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Nov 2014 03:31:06 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Mon, 3 Nov 2014 11:31:02 +0000 Message-Id: <1415014265-858-2-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1415014265-858-1-git-send-email-thomas.wood@intel.com> References: <1415014265-858-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/5] lib/tests: don't use hard error status to indicate test failure X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- lib/tests/igt_command_line.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tests/igt_command_line.sh b/lib/tests/igt_command_line.sh index 7e6ca67..5cf2584 100755 --- a/lib/tests/igt_command_line.sh +++ b/lib/tests/igt_command_line.sh @@ -48,20 +48,20 @@ for test in $TESTLIST; do # check invalid option handling echo " Checking invalid option handling..." - ./$test --invalid-option 2> /dev/null && exit 99 + ./$test --invalid-option 2> /dev/null && exit 1 # check valid options succeed echo " Checking valid option handling..." - ./$test --help > /dev/null || exit 99 + ./$test --help > /dev/null || exit 1 # check --list-subtests works correctly echo " Checking subtest enumeration..." ./$test --list-subtests > /dev/null if [ $? -ne 0 -a $? -ne 79 ]; then - exit 99 + exit 1 fi # check invalid subtest handling echo " Checking invalid subtest handling..." - ./$test --run-subtest invalid-subtest > /dev/null 2>&1 && exit 99 + ./$test --run-subtest invalid-subtest > /dev/null 2>&1 && exit 1 done