From ad35451e9bb63a551b0b1ff517706b969653f594 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Wed, 9 Dec 2015 14:32:06 +0000 Subject: bugfix: Support paths with user's home shortcut VSPERF will explicitly expand any '~' to the absolute path to the user's home directory before call of subsystem.Popen method. Only calls, which process configuration values are modified. Change-Id: Ibd9399ae84bf4698c86bf8eff97ca6ce785fb3fb JIRA: VSPERF-45 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Brian Castelli Reviewed-by: Al Morton --- tools/pkt_gen/testcenter/testcenter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/pkt_gen') diff --git a/tools/pkt_gen/testcenter/testcenter.py b/tools/pkt_gen/testcenter/testcenter.py index 4ba5bc89..f670612c 100644 --- a/tools/pkt_gen/testcenter/testcenter.py +++ b/tools/pkt_gen/testcenter/testcenter.py @@ -127,7 +127,7 @@ class TestCenter(trafficgen.ITrafficGenerator): verbose = True print("Arguments used to call test: %s" % args) - subprocess.check_call(args) + subprocess.check_call(map(os.path.expanduser, args)) file = os.path.join(settings.getValue("TRAFFICGEN_STC_RESULTS_DIR"), settings.getValue("TRAFFICGEN_STC_CSV_RESULTS_FILE_PREFIX") + ".csv") -- cgit 1.2.3-korg