1
0
mirror of https://passt.top/passt synced 2024-09-28 10:05:47 +00:00

hooks/pre_push: Fix upload of CI's logs and terminal capture file

The test_logs directory contains a directory: fix the wildcard so
that scp doesn't fail.

Terminal capture files are now deleted every time we re-run the
demo script: upload CI's .cast file before it's gone.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-09-24 00:01:39 +02:00
parent bd3e6f373f
commit 57fa9dd4c9

View File

@ -34,11 +34,14 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
cd test cd test
./ci ./ci
gzip -fk9 test_logs/web/perf.js scp test_logs/*.log "${USER_HOST}:${TEST}/"
scp test_logs/web/perf.js test_logs/web/perf.js.gz "${USER_HOST}:${WEB}/" for f in test_logs/web/*.cast test_logs/web/*.js; do
scp test_logs/* "${USER_HOST}:${TEST}/" gzip -fk9 "${f}"
./run_demo scp "${f}" "${USER_HOST}:${WEB}/"
scp "${f}.gz" "${USER_HOST}:${WEB}/"
done
./run_demo
for f in test_logs/web/*.cast test_logs/web/*.js; do for f in test_logs/web/*.cast test_logs/web/*.js; do
gzip -fk9 "${f}" gzip -fk9 "${f}"
scp "${f}" "${USER_HOST}:${WEB}/" scp "${f}" "${USER_HOST}:${WEB}/"