__main__.py 571 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. # SPDX-License-Identifier: GPL-2.0+
  3. #
  4. # Copyright 2023 Google LLC
  5. #
  6. import os
  7. import sys
  8. if __name__ == "__main__":
  9. # Allow 'from u_boot_pylib import xxx to work'
  10. our_path = os.path.dirname(os.path.realpath(__file__))
  11. sys.path.append(os.path.join(our_path, '..'))
  12. # Run tests
  13. from u_boot_pylib import terminal
  14. from u_boot_pylib import test_util
  15. result = test_util.run_test_suites(
  16. 'u_boot_pylib', False, False, False, None, None, None,
  17. ['terminal'])
  18. sys.exit(0 if result.wasSuccessful() else 1)