[spp] [PATCH 6/8] tools/sppc: add workdir docker option
ogawa.yasufumi at lab.ntt.co.jp
ogawa.yasufumi at lab.ntt.co.jp
Mon Oct 1 07:01:46 CEST 2018
From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
Some of apps require to be launched from specific directory even if PATH
is configured properly. For instance, pktgen should be launched from
project root because for finding `Pktgen.lua` in the directory.
This update is for adding workdir option for specifying a directory
from which the app is launched.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
tools/sppc/lib/app_helper.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/sppc/lib/app_helper.py b/tools/sppc/lib/app_helper.py
index c15c852..38c9ade 100644
--- a/tools/sppc/lib/app_helper.py
+++ b/tools/sppc/lib/app_helper.py
@@ -102,6 +102,10 @@ def add_sppc_args(parser):
default='latest',
help="Version of Linux distribution")
parser.add_argument(
+ '--workdir',
+ type=str,
+ help="Path of directory in which the command is launched")
+ parser.add_argument(
'-ci', '--container-image',
type=str,
help="Name of container image")
--
2.7.4
More information about the spp
mailing list