More complete testing of code that runs stitching subprocess.

This commit is contained in:
Julian Stirling 2025-08-03 21:29:22 +01:00
parent 7569c7d6b2
commit cf74ea1351
4 changed files with 151 additions and 6 deletions

View file

@ -0,0 +1,19 @@
"""CLI script used for testing subprocess calls that should go to openflexure-stitch."""
import sys
import time
def main():
"""Echo command-line arguments with a short delay between each."""
input_arguments = sys.argv[1:]
for arg in input_arguments:
# This is used to check we catch errors correctly.
if arg == "ERROR":
raise RuntimeError("I was told to do this.")
print(arg, flush=True)
time.sleep(0.2)
if __name__ == "__main__":
main()