The tinyproxy has a bit of a startup delay (python init and all that).
This means that sometimes in tests the proxy is not fully ready when
the test tries to talk to it. This PR makes the proxy a "notify"
service that only notifies after the proxy is ready.
In - line 3:
for cmd in $( find ./cmd -mindepth 2 -maxdepth 2 -name \*.go -printf "%h\n" | sort -u ); do ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
ERROR:root:shellcheck failed for file tests/regression/lp-1802581/task.yaml in sections: prepare; error log follows
ERROR:root:tests/regression/lp-1802581/task.yaml: section 'prepare':
In - line 5:
systemd_create_and_start_persistent_unit fake-gpio "$TESTSLIB/fakegpio/fake-gpio.py" "[Unit]\nBefore=snap.core.interface.gpio-100.service\n[Service]\nType=notify" ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n". ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n". ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
Signed-off-by: Maciej Borzecki <email address hidden>