summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/lint/pretend_lint.py
blob: c84285bca6159262d19d24978c45f4117e2e2961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import json
import os
import subprocess
import sys

# log the invocation
with open(os.path.join(os.environ["OUT"], "invocation.json"), "w") as f:
    json.dump(sys.argv[1:], f)

# verify the given command succeeds
result = subprocess.run(sys.argv[2:])

sys.exit(result.returncode)