diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2021-05-20 14:01:51 -0400 |
---|---|---|
committer | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2021-05-21 15:21:01 +0000 |
commit | 4ee17d859ed2f374997939511078559c26981ad0 (patch) | |
tree | c9b44351bac6113a0aea29aed21bf64cda58a449 /test/test_vcl.py | |
parent | e2353a7f6c680ef50bc41892a4503168406b7787 (diff) |
tests: add role to VCLAppWorker
- Improve readability of log output with respect
to worker role
Type: test
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Change-Id: I1a5787421b31483fa1a2558951568417dfc111d9
Diffstat (limited to 'test/test_vcl.py')
-rwxr-xr-x[-rw-r--r--] | test/test_vcl.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_vcl.py b/test/test_vcl.py index 63dd3130e7f..2688816d42a 100644..100755 --- a/test/test_vcl.py +++ b/test/test_vcl.py @@ -27,8 +27,8 @@ class VCLAppWorker(Worker): """ VCL Test Application Worker """ def __init__(self, build_dir, appname, executable_args, logger, env=None, - *args, **kwargs): - + role=None, *args, **kwargs): + self.role = role if env is None: env = {} vcl_lib_dir = "%s/vpp/lib" % build_dir @@ -90,11 +90,11 @@ class VCLTestCase(VppTestCase): self.env = {'VCL_VPP_API_SOCKET': self.get_api_sock_path(), 'VCL_APP_SCOPE_LOCAL': "true"} worker_server = VCLAppWorker(self.build_dir, server_app, server_args, - self.logger, self.env) + self.logger, self.env, "server") worker_server.start() self.sleep(self.pre_test_sleep) worker_client = VCLAppWorker(self.build_dir, client_app, client_args, - self.logger, self.env) + self.logger, self.env, "client") worker_client.start() worker_client.join(self.timeout) try: @@ -198,14 +198,14 @@ class VCLTestCase(VppTestCase): 'VCL_APP_NAMESPACE_SECRET': "1234"} worker_server = VCLAppWorker(self.build_dir, server_app, server_args, - self.logger, self.env) + self.logger, self.env, "server") worker_server.start() self.sleep(self.pre_test_sleep) self.env.update({'VCL_APP_NAMESPACE_ID': "2", 'VCL_APP_NAMESPACE_SECRET': "5678"}) worker_client = VCLAppWorker(self.build_dir, client_app, client_args, - self.logger, self.env) + self.logger, self.env, "client") worker_client.start() worker_client.join(self.timeout) |