Fix pytest tests to exit with proper exit code (#16681)
This commit is contained in:
@@ -380,4 +380,6 @@ def test_causal_conv1d_varlen(
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__])
|
||||
import sys
|
||||
|
||||
sys.exit(pytest.main([__file__]))
|
||||
|
||||
@@ -144,4 +144,6 @@ def mixer2_gated_norm_tensor_parallel(
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__])
|
||||
import sys
|
||||
|
||||
sys.exit(pytest.main([__file__]))
|
||||
|
||||
@@ -297,4 +297,6 @@ def test_selective_state_update_with_heads_with_batch_indices(
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__])
|
||||
import sys
|
||||
|
||||
sys.exit(pytest.main([__file__]))
|
||||
|
||||
@@ -607,4 +607,6 @@ def test_mamba_chunk_scan_cont_batch_prefill_chunking(chunk_size, seqlens):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pytest.main([__file__])
|
||||
import sys
|
||||
|
||||
sys.exit(pytest.main([__file__]))
|
||||
|
||||
Reference in New Issue
Block a user