diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-09-24 00:01:39 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-24 00:01:39 +0200 |
commit | 57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9 (patch) | |
tree | 2b9e5794282fae68ecd465f5892ca87f9e9a6df4 /hooks/pre-push | |
parent | bd3e6f373f0158960e65dd25daf8a186258fa51b (diff) | |
download | passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar.gz passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar.bz2 passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar.lz passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar.xz passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.tar.zst passt-57fa9dd4c9edbbac2c2a7e81c0b2c713795a69f9.zip |
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>
Diffstat (limited to 'hooks/pre-push')
-rwxr-xr-x | hooks/pre-push | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hooks/pre-push b/hooks/pre-push index 567a3e5..ebca1f6 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -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}/" |