aboutgitcodebugslistschat
path: root/hooks/pre-push
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-09-13 14:35:28 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-09-13 11:12:41 +0200
commit4e9b50f7b653c497b148b0f82260936519bf1337 (patch)
tree0eb24acb3cde18afe212488379b7b59729a6f825 /hooks/pre-push
parentec6af08ca778aa51517c49d69bc9acda08666790 (diff)
downloadpasst-4e9b50f7b653c497b148b0f82260936519bf1337.tar
passt-4e9b50f7b653c497b148b0f82260936519bf1337.tar.gz
passt-4e9b50f7b653c497b148b0f82260936519bf1337.tar.bz2
passt-4e9b50f7b653c497b148b0f82260936519bf1337.tar.lz
passt-4e9b50f7b653c497b148b0f82260936519bf1337.tar.xz
passt-4e9b50f7b653c497b148b0f82260936519bf1337.tar.zst
passt-4e9b50f7b653c497b148b0f82260936519bf1337.zip
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 <david@gibson.dropbear.id.au>
Diffstat (limited to 'hooks/pre-push')
-rwxr-xr-xhooks/pre-push12
1 files changed, 6 insertions, 6 deletions
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 ..