blob: d86b9d7dce0d6a4043ffd94ac974d2af3d9d4133 [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(
Simon Glass17899e42025-04-29 07:22:06 -060019 'u_boot_pylib', False, False, False, False, None, None, None,
Simon Glass131444f2023-02-23 18:18:04 -070020 ['terminal'])
21
22 sys.exit(0 if result.wasSuccessful() else 1)