blob: c0762bca733957e9a299e0541fd4849bc7083c79 [file] [log] [blame]
Simon Glass131444f2023-02-23 18:18:04 -07001#!/usr/bin/env python3
2# SPDX-License-Identifier: GPL-2.0+
3#
4# Copyright 2023 Google LLC
5#
6
7import os
8import sys
9
10if __name__ == "__main__":
11 # Allow 'from u_boot_pylib import xxx to work'
12 our_path = os.path.dirname(os.path.realpath(__file__))
13 sys.path.append(os.path.join(our_path, '..'))
14
15 # Run tests
Simon Glass131444f2023-02-23 18:18:04 -070016 from u_boot_pylib import test_util
17
18 result = test_util.run_test_suites(
19 'u_boot_pylib', False, False, False, None, None, None,
20 ['terminal'])
21
22 sys.exit(0 if result.wasSuccessful() else 1)