2 # SPDX-License-Identifier: GPL-2.0
4 # Copyright (c) 2015 Stephen Warren
5 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
7 # Wrapper script to invoke pytest with the directory name that contains the
15 if __name__ == '__main__':
16 # argv; py.test test_directory_name user-supplied-arguments
17 args = [os.path.dirname(__file__) + '/tests']
20 # Use short format by default
21 if not [arg for arg in args if '--tb=' in arg]:
22 args.append('--tb=short')
24 sys.exit(pytest.main(args))