Debian Codegraph @

tests/run_tests.py

raw
1 #!/usr/bin/env python3
2 # SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
3 # Copyright (c) 2018, Mellanox Technologies. All rights reserved. See COPYING file
4
5 from args_parser import parser
6 import unittest
7 import os
8 from importlib.machinery import SourceFileLoader
9
10
11 module_path = os.path.join(os.path.dirname(__file__), '__init__.py')
12 tests = SourceFileLoader('tests', module_path).load_module()
13 parser.parse_args()
14 unittest.main(module=tests)