3 # Copyright (c) 2015 Stephen Warren
4 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
6 # SPDX-License-Identifier: GPL-2.0
8 # Wrapper script to invoke pytest with the directory name that contains the
18 # argv; py.test test_directory_name user-supplied-arguments
19 args = ["py.test", os.path.dirname(__file__) + "/tests"]
23 os.execvp("py.test", args)
25 # Log full details of any exception for detailed analysis
28 # Hint to the user that they likely simply haven't installed the required
30 print >>sys.stderr, """
31 exec(py.test) failed; perhaps you are missing some dependencies?
32 See test/py/README.md for the list."""