new features
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Run against a built CLI: python3 Tests/cli_regression.py /absolute/path/accompose.
|
||||
"""Run against a built CLI: python3 Tests/cli_regression.py /absolute/path/container-compose.
|
||||
Uses a fake container executable; never touches the real runtime.
|
||||
"""
|
||||
import json, os, pathlib, signal, subprocess, sys, tempfile, time
|
||||
|
||||
binary = str(pathlib.Path(sys.argv[1]).resolve())
|
||||
with tempfile.TemporaryDirectory(prefix='accompose-regression-', dir='/private/tmp') as tmp:
|
||||
with tempfile.TemporaryDirectory(prefix='container-compose-regression-', dir=os.environ.get('CONTAINER_COMPOSE_TEST_TMPDIR', '/Volumes/ChatGPT' if pathlib.Path('/Volumes/ChatGPT').is_dir() else tempfile.gettempdir())) as tmp:
|
||||
root = pathlib.Path(tmp)
|
||||
fake = root / 'container'
|
||||
fake.write_text('#!' + sys.executable + '\n' + r'''
|
||||
|
||||
Reference in New Issue
Block a user