From: "'Clara Kowalsky' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: felix.moessbauer@siemens.com,
Clara Kowalsky <clara.kowalsky@siemens.com>
Subject: [PATCH] test-container: preserve history across shell invocations
Date: Thu, 22 Oct 2026 18:26:36 +0200 [thread overview]
Message-ID: <20261022162636.862867-1-clara.kowalsky@siemens.com> (raw)
When using `scripts/run-tests.sh --shell`, it is practical if the
shell history is kept.
Set HISTFILE to /work/.isar_test_shell_history, so commands are saved
in the work directory and can be recalled across sessions.
Also add the new file to .gitignore.
Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
---
.gitignore | 1 +
testsuite/dockerdata/test-container-entrypoint | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index fff155f1..b5f6149e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,5 @@
__pycache__
.config.yaml*
.kas_shell_history
+.isar_test_shell_history
build*
diff --git a/testsuite/dockerdata/test-container-entrypoint b/testsuite/dockerdata/test-container-entrypoint
index aa3def79..49771c15 100755
--- a/testsuite/dockerdata/test-container-entrypoint
+++ b/testsuite/dockerdata/test-container-entrypoint
@@ -121,7 +121,7 @@ EOF
cd /isar
if [ "${start_shell}" = 1 ]; then
- bash
+ HISTFILE=/work/.isar_test_shell_history bash
else
set -x
avocado ${showopt} run ${args}
--
2.55.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261022162636.862867-1-clara.kowalsky%40siemens.com.
next reply other threads:[~2026-10-22 16:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 16:26 'Clara Kowalsky' via isar-users [this message]
2026-10-29 14:21 ` Zhihang Wei
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=20261022162636.862867-1-clara.kowalsky@siemens.com \
--to=isar-users@googlegroups.com \
--cc=clara.kowalsky@siemens.com \
--cc=felix.moessbauer@siemens.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox