From patchwork Wed Jan 11 19:52:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Gao X-Patchwork-Id: 1724892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=susede1 header.b=SvO4vCIr; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NsvrZ60xYz23dq for ; Thu, 12 Jan 2023 17:33:34 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 54CB53CB544 for ; Thu, 12 Jan 2023 07:33:32 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 630843CB535 for ; Thu, 12 Jan 2023 07:33:30 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 8F3E010000E1 for ; Thu, 12 Jan 2023 07:33:28 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 624283F578; Thu, 12 Jan 2023 06:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673505208; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NNF2pPSxW7xVGIyqpC53GX9T7UF9L7gV4qBIkEEZkt8=; b=SvO4vCIrOqtfVycRLzcAvA7dOj1W55tOi7Uj+YvY/jPmVjMugV4MVPO+Bx9d1Nh48vGemw zbOaCAYHXFPIkO5RGoJXp+Va+Rx9SghZTIm+2VEZWxXXkGIHt/S1FB08vIIGipPwoO87u4 AjSGCrdnQuGUDrlsJhaFQjqzJCUTt6E= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8719513585; Thu, 12 Jan 2023 06:33:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5XaoFLepv2OgPQAAMHmgww (envelope-from ); Thu, 12 Jan 2023 06:33:27 +0000 To: ltp@lists.linux.it Date: Wed, 11 Jan 2023 14:52:31 -0500 Message-Id: <20230111195231.23596-1-wegao@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230106113126.5304-1-wegao@suse.com> References: <20230106113126.5304-1-wegao@suse.com> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=1.2 required=7.0 tests=DATE_IN_PAST_06_12, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH v4] Add PATH to tst_rhost_run.sh 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: , X-Patchwork-Original-From: WEI GAO via ltp From: Wei Gao Reply-To: WEI GAO Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" From: coolgw When run single test case use command such as: LTP_SHELL_API_TESTS=shell/net/tst_rhost_run.sh make test-shell Error msg such as "ns_create: command not found" will popup, so need update PATH before call ns_create etc.. More important: 1) LTP shell API tests depend on properly compiled LTP. Therefore this is just a workaround to make visible that some tool is missing. 2) I wonder if there is way to properly fix this dependency in make. I guess test-shell target should depend on (at least): ns_create ns_exec ns_ifmove. Signed-off-by: WEI GAO --- v3 -> v4: update base Vorel's latest comments, remove unrelated change V2 -> V3: move path to test case itself V1 -> V2: add tst_require_cmds for init_ltp_netspace() lib/newlib_tests/shell/net/tst_rhost_run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/newlib_tests/shell/net/tst_rhost_run.sh b/lib/newlib_tests/shell/net/tst_rhost_run.sh index 773b8dd33..951551514 100755 --- a/lib/newlib_tests/shell/net/tst_rhost_run.sh +++ b/lib/newlib_tests/shell/net/tst_rhost_run.sh @@ -3,7 +3,8 @@ # Copyright (c) 2020 Petr Vorel TST_TESTFUNC=do_test -PATH="$(dirname $0)/../../../../testcases/lib/:$PATH" +root="$(dirname $0)/../../../../" +PATH="$root/testcases/lib/:$root/testcases/kernel/containers/share/:$PATH" export TST_NET_RHOST_RUN_DEBUG=1