From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 02/11] hooks/pre_push: Fix upload of CI's logs and terminal capture file Date: Sat, 24 Sep 2022 00:42:28 +0200 Message-ID: <20220923224237.437279-3-sbrivio@redhat.com> In-Reply-To: <20220923224237.437279-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9188349719231465604==" --===============9188349719231465604== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --- hooks/pre-push | 11 +++++++---- 1 file 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}/" -- 2.35.1 --===============9188349719231465604==--