1#!/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
16    from u_boot_pylib import terminal
17    from u_boot_pylib import test_util
18
19    result = test_util.run_test_suites(
20        'u_boot_pylib', False, False, False, None, None, None,
21        ['terminal'])
22
23    sys.exit(0 if result.wasSuccessful() else 1)
24