From patchwork Thu Apr 29 02:28:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Gongyi X-Patchwork-Id: 1471485 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FVzwT3w6jz9sSs for ; Thu, 29 Apr 2021 12:29:29 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E2AC93C655D for ; Thu, 29 Apr 2021 04:29:26 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 82A5F3C26CE for ; Thu, 29 Apr 2021 04:29:24 +0200 (CEST) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id C1A50601AE2 for ; Thu, 29 Apr 2021 04:29:23 +0200 (CEST) Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FVzsR3DknzBscS; Thu, 29 Apr 2021 10:26:51 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.63) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Thu, 29 Apr 2021 10:29:12 +0800 From: Zhao Gongyi To: Date: Thu, 29 Apr 2021 10:28:39 +0800 Message-ID: <20210429022839.24503-1-zhaogongyi@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.63] X-CFilter-Loop: Reflected X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH v3] network/sit01.sh: Replace tst_res with tst_brk X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" We need replace tst_res with tst_brk to terminate the test immediately since there is no sence to go on. Signed-off-by: Zhao Gongyi Reviewed-by: Petr Vorel --- v2->v3: split into two separate commits testcases/network/virt/sit01.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/testcases/network/virt/sit01.sh b/testcases/network/virt/sit01.sh index 4ecc1f8c0..27fa0ee77 100755 --- a/testcases/network/virt/sit01.sh +++ b/testcases/network/virt/sit01.sh @@ -11,7 +11,7 @@ virt_type="sit" do_setup() { - [ -n "$TST_IPV6" ] && tst_res TBROK "invalid option '-6' for sit tunnel" + [ -n "$TST_IPV6" ] && tst_brk TBROK "invalid option '-6' for sit tunnel" virt_lib_setup