aptly-resource/check_test.py
2022-03-19 00:23:10 +01:00

16 lines
259 B
Python
Executable File

#!/usr/bin/env python3
'''
aptly-resource test out
'''
from subprocess import run
with open('check.in.json', 'r', encoding='utf-8') as f:
contents = f.read()
run(['./check tmp'],
input = contents.encode(),
check = True,
shell = True,
)