From: Stefano Brivio <sbrivio@redhat.com>
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 [thread overview]
Message-ID: <20220923224237.437279-3-sbrivio@redhat.com> (raw)
In-Reply-To: <20220923224237.437279-1-sbrivio@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
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(a)redhat.com>
---
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}/"
--
@@ -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
next prev parent reply other threads:[~2022-09-23 22:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 22:42 [PATCH 00/11] Fixes for demos, pre-push hook, README Stefano Brivio
2022-09-23 22:42 ` [PATCH 01/11] contrib/podman: Rebase to latest upstream Stefano Brivio
2022-09-23 22:42 ` Stefano Brivio [this message]
2022-09-23 22:42 ` [PATCH 03/11] test/demo: Use relative paths to change directories when possible Stefano Brivio
2022-09-23 22:42 ` [PATCH 04/11] test/demo: Avoid using port 5201 on the host Stefano Brivio
2022-09-23 22:42 ` [PATCH 05/11] test/lib: Drop perf_report_append() from perf_report Stefano Brivio
2022-09-23 22:42 ` [PATCH 06/11] test/lib: Don't try to write to perf.js when running demos Stefano Brivio
2022-09-23 22:42 ` [PATCH 07/11] README: Fix misspellings of openSUSE Stefano Brivio
2022-09-23 22:42 ` [PATCH 08/11] README: Point openSUSE links to Dario's OBS repository Stefano Brivio
2022-09-23 22:42 ` [PATCH 09/11] README: Fix indentation in "Try It" section Stefano Brivio
2022-09-23 22:42 ` [PATCH 10/11] README: Fix paragraph in Try It section of passt Stefano Brivio
2022-09-23 22:42 ` [PATCH 11/11] README: Add legend for Features section Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220923224237.437279-3-sbrivio@redhat.com \
--to=sbrivio@redhat.com \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).