mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
b04f64aa48
This produces a lot of code output which is not very helpful and is quite annoying to wade through. Use the short format by default. Signed-off-by: Simon Glass <sjg@chromium.org>
25 lines
672 B
Python
Executable file
25 lines
672 B
Python
Executable file
#!/usr/bin/env python3
|
|
# 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
|
|
# U-Boot tests.
|
|
|
|
import os
|
|
import os.path
|
|
import sys
|
|
import pytest
|
|
from pkg_resources import load_entry_point
|
|
|
|
if __name__ == '__main__':
|
|
# argv; py.test test_directory_name user-supplied-arguments
|
|
args = [os.path.dirname(__file__) + '/tests']
|
|
args.extend(sys.argv)
|
|
|
|
# Use short format by default
|
|
if not [arg for arg in args if '--tb=' in arg]:
|
|
args.append('--tb=short')
|
|
|
|
sys.exit(pytest.main(args))
|