test.py 550 B

1234567891011121314151617181920
  1. #!/usr/bin/env python3
  2. # SPDX-License-Identifier: GPL-2.0
  3. # Copyright (c) 2015 Stephen Warren
  4. # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
  5. # Wrapper script to invoke pytest with the directory name that contains the
  6. # U-Boot tests.
  7. import os
  8. import os.path
  9. import sys
  10. import pytest
  11. from pkg_resources import load_entry_point
  12. if __name__ == '__main__':
  13. # argv; py.test test_directory_name user-supplied-arguments
  14. args = [os.path.dirname(__file__) + '/tests']
  15. args.extend(sys.argv)
  16. sys.exit(pytest.main(args))