Skip to content

Commit 9a703c1

Browse files
minor: skip get_exe_name outside of planned maintenance testing
1 parent de98529 commit 9a703c1

File tree

1 file changed

+11
-0
lines changed
  • src/test/atlas_planned_maintenance_testing

1 file changed

+11
-0
lines changed

src/test/atlas_planned_maintenance_testing/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ use super::spec::unified_runner::EntityMap;
2626

2727
#[test]
2828
fn get_exe_name() {
29+
if env::var("ATLAS_PLANNED_MAINTENANCE_TESTING").is_err() {
30+
// This test should only be run from the workload-executor script.
31+
log_uncaptured(
32+
"Skipping get_exe_name due to being run outside of planned maintenance testing",
33+
);
34+
return;
35+
}
36+
2937
let mut file = File::create("exe_name.txt").expect("Failed to create file");
3038
let exe_name = env::current_exe()
3139
.expect("Failed to determine name of test executable")
@@ -40,6 +48,9 @@ fn get_exe_name() {
4048
async fn workload_executor() {
4149
if env::var("ATLAS_PLANNED_MAINTENANCE_TESTING").is_err() {
4250
// This test should only be run from the workload-executor script.
51+
log_uncaptured(
52+
"Skipping workload_executor due to being run outside of planned maintenance testing",
53+
);
4354
return;
4455
}
4556

0 commit comments

Comments
 (0)