From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id 429462952 for ; Mon, 1 Oct 2018 07:02:04 +0200 (CEST) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id w91523c5020782; Mon, 1 Oct 2018 14:02:03 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 12BAD125; Mon, 1 Oct 2018 14:02:03 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id F0B5C55; Mon, 1 Oct 2018 14:02:02 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Mon, 1 Oct 2018 14:01:48 +0900 Message-Id: <20181001050148.77373-9-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20181001050148.77373-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20181001050148.77373-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 8/8] tools/sppc: update launcer for custom pktgen repo X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2018 05:02:04 -0000 From: Yasufumi Ogawa To launch executable in custom repo, change the path from absolute path to just filename. Path of the file is defined as PATH in each of Dockerfiles and no need to use absolute path by previous change. In addition, pktgen should be launched from the directory which includes `Pktgen.lua` but cannot found it if you use custom repo. To avoid it, add specifying workdir for launching from the directory. Signed-off-by: Yasufumi Ogawa --- tools/sppc/app/pktgen.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/sppc/app/pktgen.py b/tools/sppc/app/pktgen.py index 0b79bd3..708633b 100755 --- a/tools/sppc/app/pktgen.py +++ b/tools/sppc/app/pktgen.py @@ -74,16 +74,16 @@ def main(): sock_files = app_helper.sock_files(dev_ids_list) # Setup docker command. + if args.workdir is not None: + wd = args.workdir + else: + wd = '/root/pktgen-dpdk' docker_cmd = ['sudo', 'docker', 'run', '\\'] docker_opts = app_helper.setup_docker_opts( - args, target_name, sock_files, - '%s/../pktgen-dpdk' % env.RTE_SDK) - - cmd_path = '%s/../pktgen-dpdk/app/%s/pktgen' % ( - env.RTE_SDK, env.RTE_TARGET) + args, target_name, sock_files, wd) # Setup pktgen command - pktgen_cmd = [cmd_path, '\\'] + pktgen_cmd = ['pktgen', '\\'] file_prefix = 'spp-pktgen-container%d' % dev_ids_list[0] eal_opts = app_helper.setup_eal_opts(args, file_prefix) -- 2.7.4