summaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/testcenter
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pkt_gen/testcenter')
-rw-r--r--tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py3
-rw-r--r--tools/pkt_gen/testcenter/testcenter-rfc2544-throughput.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py
index 91f7e27f..538d8a8a 100644
--- a/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py
+++ b/tools/pkt_gen/testcenter/testcenter-rfc2544-rest.py
@@ -22,6 +22,7 @@ TestCenter REST APIs. This test supports Python 3.4
import argparse
import logging
import os
+from conf import settings
logger = logging.getLogger(__name__)
@@ -141,7 +142,7 @@ def main():
dest="test_user_name")
optional_named.add_argument("--results_dir",
required=False,
- default="./Results",
+ default=settings.getValue("TRAFFICGEN_STC_RESULTS_DIR"),
help="The directory to copy results to",
dest="results_dir")
optional_named.add_argument("--csv_results_file_prefix",
diff --git a/tools/pkt_gen/testcenter/testcenter-rfc2544-throughput.py b/tools/pkt_gen/testcenter/testcenter-rfc2544-throughput.py
index becf7877..239fd109 100644
--- a/tools/pkt_gen/testcenter/testcenter-rfc2544-throughput.py
+++ b/tools/pkt_gen/testcenter/testcenter-rfc2544-throughput.py
@@ -22,6 +22,7 @@ TestCenter command sequencer. This test supports Python 2.7.
from __future__ import print_function
import argparse
import os
+from conf import settings
def create_dir(path):
@@ -129,7 +130,7 @@ def main():
dest="test_session_name")
optionalnamed.add_argument("--results_dir",
required=False,
- default="./Results",
+ default=settings.getValue("TRAFFICGEN_STC_RESULTS_DIR"),
help="The directory to copy results to",
dest="results_dir")
optionalnamed.add_argument("--csv_results_file_prefix",