Skip to content

Commit 5d44262

Browse files
jmlapreberquist
andauthored
Add testing_check_is_nightly() function (#1290)
* Add testing_check_is_nightly() function Will be required when turning off long-running tests. * Update src/sst/core/testingframework/sst_unittest_support.py --------- Co-authored-by: Eric Berquist <727571+berquist@users.noreply.github.com>
1 parent b386486 commit 5d44262

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sst/core/testingframework/sst_unittest_support.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ def __str__(self) -> str:
7575
# Commandline Information Functions
7676
################################################################################
7777

78+
def testing_check_is_nightly() -> bool:
79+
"""If Nightly is in the BUILD_TAG it's very likely a Nightly build."""
80+
build_tag = os.getenv("BUILD_TAG")
81+
if build_tag is not None and "Nightly" in build_tag:
82+
return True
83+
return False
84+
85+
###
86+
7887
def testing_check_is_in_debug_mode() -> bool:
7988
""" Identify if test frameworks is in debug mode
8089

0 commit comments

Comments
 (0)