@@ -68,28 +68,30 @@ def test_efa(
68
68
69
69
with soft_assertions ():
70
70
assert_no_errors_in_logs (remote_command_executor , scheduler , skip_ice = True )
71
-
72
- # Run Fabric tests
73
- run_system_analyzer (cluster , scheduler_commands_factory , request , partition = "efa-enabled" )
74
-
75
- fabtests_report = _execute_fabtests (remote_command_executor , test_datadir , instance )
76
-
77
- num_tests = int (fabtests_report .get ("testsuites" , {}).get ("@tests" , None ))
78
- num_failures = int (fabtests_report .get ("testsuites" , {}).get ("@failures" , None ))
79
- num_errors = int (fabtests_report .get ("testsuites" , {}).get ("@errors" , None ))
80
-
81
- with soft_assertions ():
82
- assert_that (num_tests , description = "Cannot read number of tests from Fabtests report" ).is_not_none ()
83
- assert_that (num_failures , description = "Cannot read number of failures from Fabtests report" ).is_not_none ()
84
- assert_that (num_errors , description = "Cannot read number of errors from Fabtests report" ).is_not_none ()
85
-
86
- if num_failures + num_errors > 0 :
87
- logging .info (f"Fabtests report:\n { fabtests_report } " )
88
-
89
- with soft_assertions ():
90
- assert_that (num_failures , description = f"{ num_failures } /{ num_tests } libfabric tests are failing" ).is_equal_to (0 )
91
- assert_that (num_errors , description = f"{ num_errors } /{ num_tests } libfabric tests got errors" ).is_equal_to (0 )
92
- assert_no_errors_in_logs (remote_command_executor , scheduler )
71
+ if "us-iso" not in region :
72
+ # Run Fabric tests. Fabric tests require Internet connection, so cannot be run in us-iso regions
73
+ run_system_analyzer (cluster , scheduler_commands_factory , request , partition = "efa-enabled" )
74
+
75
+ fabtests_report = _execute_fabtests (remote_command_executor , test_datadir , instance )
76
+
77
+ num_tests = int (fabtests_report .get ("testsuites" , {}).get ("@tests" , None ))
78
+ num_failures = int (fabtests_report .get ("testsuites" , {}).get ("@failures" , None ))
79
+ num_errors = int (fabtests_report .get ("testsuites" , {}).get ("@errors" , None ))
80
+
81
+ with soft_assertions ():
82
+ assert_that (num_tests , description = "Cannot read number of tests from Fabtests report" ).is_not_none ()
83
+ assert_that (num_failures , description = "Cannot read number of failures from Fabtests report" ).is_not_none ()
84
+ assert_that (num_errors , description = "Cannot read number of errors from Fabtests report" ).is_not_none ()
85
+
86
+ if num_failures + num_errors > 0 :
87
+ logging .info (f"Fabtests report:\n { fabtests_report } " )
88
+
89
+ with soft_assertions ():
90
+ assert_that (
91
+ num_failures , description = f"{ num_failures } /{ num_tests } libfabric tests are failing"
92
+ ).is_equal_to (0 )
93
+ assert_that (num_errors , description = f"{ num_errors } /{ num_tests } libfabric tests got errors" ).is_equal_to (0 )
94
+ assert_no_errors_in_logs (remote_command_executor , scheduler )
93
95
94
96
95
97
def _execute_fabtests (remote_command_executor , test_datadir , instance ):
0 commit comments