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
17 # argv; py.test test_directory_name user-supplied-arguments
18 args = ['py.test', os.path.dirname(__file__) + '/tests']
22 os.execvp('py.test', args)
24 # Log full details of any exception for detailed analysis
27 # Hint to the user that they likely simply haven't installed the required
29 print >>sys.stderr, '''
30 exec(py.test) failed; perhaps you are missing some dependencies?
31 See test/py/README.md for the list.'''