aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Sree Kuchibhotla <sreek@google.com>2016-01-04 09:39:05 -0800
committerGravatar Sree Kuchibhotla <sreek@google.com>2016-01-04 09:39:50 -0800
commitca8e3d77877b63d9bb6a675c9c6c122d72f47e7c (patch)
tree33a3d6531a49dc2668c00f98f048b0f78778ed17 /tools
parentcc16931dea6b70ea67a6cc2549a3e535fbc3e577 (diff)
Modify run_tests to run stress tests
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/run_stress_tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/run_tests/run_stress_tests.py b/tools/run_tests/run_stress_tests.py
index 529dc4a48d..d857fdb110 100755
--- a/tools/run_tests/run_stress_tests.py
+++ b/tools/run_tests/run_stress_tests.py
@@ -59,7 +59,7 @@ _DEFAULT_NUM_STUBS_PER_CHANNEL = 10
# 15 mins default
#_DEFAULT_TEST_DURATION_SECS = 900
-_DEFAULT_TEST_DURATION_SECS = 10
+_DEFAULT_TEST_DURATION_SECS = 30
class CXXLanguage:
@@ -258,9 +258,8 @@ argp.add_argument(
'csharp=localhost:50000',
default=[])
argp.add_argument('--test_duration_secs',
- action='append',
help='The duration of the test in seconds',
- default=[_DEFAULT_TEST_DURATION_SECS])
+ default=_DEFAULT_TEST_DURATION_SECS)
argp.add_argument(
'--allow_flakes',
default=False,
@@ -314,7 +313,7 @@ server_addresses = {}
try:
for s in servers:
lang = str(s)
- spec = server_jobspec(_LANGUAGES[lang], docker_images.get(lang), _DEFAULT_TEST_DURATION_SECS)
+ spec = server_jobspec(_LANGUAGES[lang], docker_images.get(lang), args.test_duration_secs)
job = dockerjob.DockerJob(spec)
server_jobs[lang] = job
server_addresses[lang] = ('localhost',
@@ -334,7 +333,7 @@ try:
language,
_DEFAULT_TEST_CASES,
('%s:%s' % (server_host, server_port)),
- _DEFAULT_TEST_DURATION_SECS,
+ args.test_duration_secs,
_DEFAULT_NUM_CHANNELS_PER_SERVER,
_DEFAULT_NUM_STUBS_PER_CHANNEL,
_DEFAULT_METRICS_PORT,