]> Git Repo - u-boot.git/blame - test/py/test.py
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
[u-boot.git] / test / py / test.py
CommitLineData
fe1193e2 1#!/usr/bin/env python3
83d290c5 2# SPDX-License-Identifier: GPL-2.0
d201506c
SW
3
4# Copyright (c) 2015 Stephen Warren
5# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
d201506c
SW
6
7# Wrapper script to invoke pytest with the directory name that contains the
8# U-Boot tests.
9
10import os
11import os.path
12import sys
89d52afa 13import pytest
d201506c 14
8add4fa4 15if __name__ == '__main__':
89d52afa
HS
16 # argv; py.test test_directory_name user-supplied-arguments
17 args = [os.path.dirname(__file__) + '/tests']
18 args.extend(sys.argv)
b04f64aa
SG
19
20 # Use short format by default
21 if not [arg for arg in args if '--tb=' in arg]:
22 args.append('--tb=short')
23
89d52afa 24 sys.exit(pytest.main(args))
This page took 0.222698 seconds and 4 git commands to generate.