Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CIME/Tools/wait_for_tests
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ OR
)

parser.add_argument(
"--force-log-upload",
"--cdash-force-log-upload",
action="store_true",
help="Always upload logs to cdash, even if test passed",
)
Expand All @@ -105,6 +105,11 @@ OR
help="The name of the CDash project where results should be uploaded",
)

parser.add_argument(
"--cdash-tmproot",
help="Where to put temporary files needed to do cdash submission. Default=/tmp",
)

parser.add_argument(
"-g",
"--cdash-build-group",
Expand Down Expand Up @@ -132,9 +137,10 @@ OR
args.ignore_memleak,
args.cdash_build_name,
args.cdash_project,
args.cdash_tmproot,
args.cdash_build_group,
args.timeout,
args.force_log_upload,
args.cdash_force_log_upload,
args.no_run,
args.update_success,
)
Expand All @@ -153,6 +159,7 @@ def _main_func(description):
ignore_memleak,
cdash_build_name,
cdash_project,
cdash_tmproot,
cdash_build_group,
timeout,
force_log_upload,
Expand All @@ -172,6 +179,7 @@ def _main_func(description):
ignore_memleak=ignore_memleak,
cdash_build_name=cdash_build_name,
cdash_project=cdash_project,
cdash_tmproot=cdash_tmproot,
cdash_build_group=cdash_build_group,
timeout=timeout,
force_log_upload=force_log_upload,
Expand Down
4 changes: 4 additions & 0 deletions CIME/tests/test_sys_wait_for_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from CIME import utils
from CIME import test_status
from CIME.wait_for_tests import ENV_VAR_KEEP_CDASH
from CIME.tests import base
from CIME.tests import utils as test_utils

Expand Down Expand Up @@ -110,6 +111,8 @@ def tearDown(self):
for testdir in self._testdirs:
shutil.rmtree(testdir)

os.environ.pop(ENV_VAR_KEEP_CDASH, None)

def simple_test(self, testdir, expected_results, extra_args="", build_name=None):
# Need these flags to test dashboard if e3sm
if self._config.create_test_flag_mode == "e3sm" and build_name is not None:
Expand Down Expand Up @@ -270,6 +273,7 @@ def test_wait_for_test_cdash_pass(self):

def test_wait_for_test_cdash_kill(self):
expected_results = ["PEND" if item == 5 else "PASS" for item in range(10)]
os.environ[ENV_VAR_KEEP_CDASH] = "True"
build_name = "regression_test_kill_" + self._timestamp
run_thread = threading.Thread(
target=self.threaded_test,
Expand Down
Loading
Loading