File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/test/atlas_planned_maintenance_testing Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ use super::spec::unified_runner::EntityMap;
26
26
27
27
#[ test]
28
28
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
+
29
37
let mut file = File :: create ( "exe_name.txt" ) . expect ( "Failed to create file" ) ;
30
38
let exe_name = env:: current_exe ( )
31
39
. expect ( "Failed to determine name of test executable" )
@@ -40,6 +48,9 @@ fn get_exe_name() {
40
48
async fn workload_executor ( ) {
41
49
if env:: var ( "ATLAS_PLANNED_MAINTENANCE_TESTING" ) . is_err ( ) {
42
50
// 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
+ ) ;
43
54
return ;
44
55
}
45
56
You can’t perform that action at this time.
0 commit comments