blob: 2bbbe644f4f922388376eca631fbf656d15ad98a [file] [log] [blame]
Anthony Sottile8f615292022-01-15 19:24:05 -05001from __future__ import annotations
2
Anthony Sottile3e45f532014-04-03 21:36:03 -07003import os.path
Mikhail Khvoinitsky10c5e4e2021-06-23 03:10:13 +03004import subprocess
Anthony Sottile3e45f532014-04-03 21:36:03 -07005
6
7TESTING_DIR = os.path.abspath(os.path.dirname(__file__))
8
9
10def get_resource_path(path):
11 return os.path.join(TESTING_DIR, 'resources', path)
Mikhail Khvoinitsky10c5e4e2021-06-23 03:10:13 +030012
13
14def git_commit(*args, **kwargs):
15 cmd = ('git', 'commit', '--no-gpg-sign', '--no-verify', '--no-edit', *args)
16 subprocess.check_call(cmd, **kwargs)