From 4c49c81008fc2f22c2eef2e019a11f80cd5464a8 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 21 Aug 2024 11:00:48 +0200 Subject: Add test verifying lint information is propagated properly ... through all our various rules and forms of libraries. --- tests/test_cases/deps/lint/pretend_lint.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/test_cases/deps/lint/pretend_lint.py (limited to 'tests/test_cases/deps/lint/pretend_lint.py') diff --git a/tests/test_cases/deps/lint/pretend_lint.py b/tests/test_cases/deps/lint/pretend_lint.py new file mode 100755 index 0000000..c84285b --- /dev/null +++ b/tests/test_cases/deps/lint/pretend_lint.py @@ -0,0 +1,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) -- cgit v1.2.3