about summary refs log tree commit diff
path: root/tests/run-make/libtest-json/validate_json.py
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-08-17 17:56:00 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-08-17 18:15:38 +1000
commit3116db669c4e80ffdae5a34a8dd9bcfba4b1a9be (patch)
tree719a89d392fe54d5fb436c03788a586cfeae4509 /tests/run-make/libtest-json/validate_json.py
parent67d09736ea4be93216e5e2c37c68a38d7bf99968 (diff)
downloadrust-3116db669c4e80ffdae5a34a8dd9bcfba4b1a9be.tar.gz
rust-3116db669c4e80ffdae5a34a8dd9bcfba4b1a9be.zip
Port `run-make/libtest-json/validate_json.py` to Rust
This is a trivial Python script that simply tries to parse each line of stdin
(i.e. the test process output) as JSON, to verify that the overall output is
JSON Lines.

We can perform the same check directly in `rmake.rs` using `serde_json`.
Diffstat (limited to 'tests/run-make/libtest-json/validate_json.py')
-rwxr-xr-xtests/run-make/libtest-json/validate_json.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/run-make/libtest-json/validate_json.py b/tests/run-make/libtest-json/validate_json.py
deleted file mode 100755
index 657f732f2bf..00000000000
--- a/tests/run-make/libtest-json/validate_json.py
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env python
-
-import sys
-import json
-
-# Try to decode line in order to ensure it is a valid JSON document
-for line in sys.stdin:
-    json.loads(line)