Skip to content

Commit

Permalink
Run parse_args() in IntegrationTestCase.setUpClass()
Browse files Browse the repository at this point in the history
This is needed so that vars are initialized before
using them to configure the itest subprocesses
via env vars.
  • Loading branch information
cognifloyd committed Nov 9, 2024
1 parent 529de1b commit 80c467e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions st2tests/st2tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ class IntegrationTestCase(TestCase):

processes = {}

@classmethod
def setUpClass(cls):
# this prepares the vars for use in configuring the subprocesses via env var
tests_config.parse_args()

def setUp(self):
super(IntegrationTestCase, self).setUp()
self._stop_running_processes()
Expand Down

0 comments on commit 80c467e

Please sign in to comment.