public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] test-container: preserve history across shell invocations
@ 2026-10-22 16:26 'Clara Kowalsky' via isar-users
  2026-10-29 14:21 ` Zhihang Wei
  0 siblings, 1 reply; 2+ messages in thread
From: 'Clara Kowalsky' via isar-users @ 2026-10-22 16:26 UTC (permalink / raw)
  To: isar-users; +Cc: felix.moessbauer, Clara Kowalsky

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] test-container: preserve history across shell invocations
  2026-10-22 16:26 [PATCH] test-container: preserve history across shell invocations 'Clara Kowalsky' via isar-users
@ 2026-10-29 14:21 ` Zhihang Wei
  0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2026-10-29 14:21 UTC (permalink / raw)
  To: Clara Kowalsky, isar-users; +Cc: felix.moessbauer

Applied to next, thanks.

Zhihang

On 10/22/26 18:26, 'Clara Kowalsky' via isar-users wrote:
> 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}

-- 
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/ffd1e4c6-09a8-440f-9be8-336e17e799df%40ilbers.de.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-29 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 16:26 [PATCH] test-container: preserve history across shell invocations 'Clara Kowalsky' via isar-users
2026-10-29 14:21 ` Zhihang Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox