From 4e9b50f7b653c497b148b0f82260936519bf1337 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 13 Sep 2022 14:35:28 +1000 Subject: test: Move video processing files to $STATEBASE The asciinema video handling creates a number of temporary files (.uncat, .start, .stop) which currently go into the source tree. Put them in the temporary state directory to avoid clutter. The final processed output is now placed into test_logs/web/ along with the corresponding .js file with links, since they're essentially test artefacts. hooks/pre-push is updated to look for those files in the new location when updating the web site. Signed-off-by: David Gibson --- hooks/pre-push | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hooks') diff --git a/hooks/pre-push b/hooks/pre-push index 1060802..1c221e7 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -34,15 +34,15 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}" cd test ./ci -gzip -fk9 perf.js ci.js -scp perf.js perf.js.gz ci.js ci.js.gz "${USER_HOST}:${WEB}/" +gzip -fk9 perf.js +scp perf.js perf.js.gz "${USER_HOST}:${WEB}/" scp test_logs/* "${USER_HOST}:${TEST}/" ./run_demo -for cast in ci demo_pasta demo_podman demo_passt; do - gzip -fk9 "${cast}.cast" - scp "${cast}.cast" "${USER_HOST}:${WEB}/" - scp "${cast}.cast.gz" "${USER_HOST}:${WEB}/" +for f in test_logs/web/*.cast test_logs/web/*.js; do + gzip -fk9 "${f}" + scp "${f}" "${USER_HOST}:${WEB}/" + scp "${f}.gz" "${USER_HOST}:${WEB}/" done cd .. -- cgit v1.2.3