mirror of
https://passt.top/passt
synced 2024-12-22 05:35:23 +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:
parent
bd3e6f373f
commit
57fa9dd4c9
@ -34,11 +34,14 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
|
||||
cd test
|
||||
|
||||
./ci
|
||||
gzip -fk9 test_logs/web/perf.js
|
||||
scp test_logs/web/perf.js test_logs/web/perf.js.gz "${USER_HOST}:${WEB}/"
|
||||
scp test_logs/* "${USER_HOST}:${TEST}/"
|
||||
./run_demo
|
||||
scp test_logs/*.log "${USER_HOST}:${TEST}/"
|
||||
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
|
||||
|
||||
./run_demo
|
||||
for f in test_logs/web/*.cast test_logs/web/*.js; do
|
||||
gzip -fk9 "${f}"
|
||||
scp "${f}" "${USER_HOST}:${WEB}/"
|
||||
|
Loading…
Reference in New Issue
Block a user