"""Python script to run all tests"""
import pytest

if __name__ == '__main__':
    pytest.main()

"""Python script to run all tests"""
import sys

import pytest


if __name__ == '__main__':
    sys.exit(pytest.main())

Allow Jenkins to actually report build failures
Allow Jenkins to actually report build failures

  """Python script to run all tests"""
+ import sys
+ 
  import pytest
  
+ 
  if __name__ == '__main__':
-     pytest.main()
+     sys.exit(pytest.main())
  
Allow Jenkins to actually report build failures
## Code Before:
"""Python script to run all tests"""
import pytest

if __name__ == '__main__':
    pytest.main()

## Instruction:
Allow Jenkins to actually report build failures
## Code After:
"""Python script to run all tests"""
import sys

import pytest


if __name__ == '__main__':
    sys.exit(pytest.main())
