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