run_checks.py (0aea30a07ec6b50de0fc5f5b2ec34a68ead86b61) | run_checks.py (0453f984a7b9458f0e469afb039f2841308b1bef) |
---|---|
1#!/usr/bin/env python3 2# SPDX-License-Identifier: GPL-2.0 3# 4# This file runs some basic checks to verify kunit works. 5# It is only of interest if you're making changes to KUnit itself. 6# 7# Copyright (C) 2021, Google LLC. 8# Author: Daniel Latypov <dlatypov@google.com.com> 9 10from concurrent import futures 11import datetime 12import os 13import shutil 14import subprocess 15import sys 16import textwrap | 1#!/usr/bin/env python3 2# SPDX-License-Identifier: GPL-2.0 3# 4# This file runs some basic checks to verify kunit works. 5# It is only of interest if you're making changes to KUnit itself. 6# 7# Copyright (C) 2021, Google LLC. 8# Author: Daniel Latypov <dlatypov@google.com.com> 9 10from concurrent import futures 11import datetime 12import os 13import shutil 14import subprocess 15import sys 16import textwrap |
17from typing import Dict, List, Sequence, Tuple | 17from typing import Dict, List, Sequence |
18 19ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__)) 20TIMEOUT = datetime.timedelta(minutes=5).total_seconds() 21 22commands: Dict[str, Sequence[str]] = { 23 'kunit_tool_test.py': ['./kunit_tool_test.py'], 24 'kunit smoke test': ['./kunit.py', 'run', '--kunitconfig=lib/kunit', '--build_dir=kunit_run_checks'], 25 'pytype': ['/bin/sh', '-c', 'pytype *.py'], --- 56 unchanged lines hidden --- | 18 19ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__)) 20TIMEOUT = datetime.timedelta(minutes=5).total_seconds() 21 22commands: Dict[str, Sequence[str]] = { 23 'kunit_tool_test.py': ['./kunit_tool_test.py'], 24 'kunit smoke test': ['./kunit.py', 'run', '--kunitconfig=lib/kunit', '--build_dir=kunit_run_checks'], 25 'pytype': ['/bin/sh', '-c', 'pytype *.py'], --- 56 unchanged lines hidden --- |