From 9b24d8ab5018c20dc6c917b5a89b3b1fcda3e6f9 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 2 Nov 2022 17:03:05 +0100 Subject: tests: Add tr:assert-same function. * tests/gpgscm/tests.scm (tr:assert-same-string): New. * tests/openpgp/shell.scm: Option to drop into a REPL. --- tests/openpgp/shell.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/openpgp/shell.scm') diff --git a/tests/openpgp/shell.scm b/tests/openpgp/shell.scm index 347b3a08c..af4f25498 100644 --- a/tests/openpgp/shell.scm +++ b/tests/openpgp/shell.scm @@ -47,7 +47,9 @@ (pathsep-split (getenv "PATH")))) #t) -(echo "\nEnjoy your test environment. " +(if (prompt-yes-no? "Run system shell" #t) + ((echo "\nEnjoy your test environment. " "Type 'exit' to exit it, it will be cleaned up after you.\n") - -(interactive-shell) + (interactive-shell)) + ((echo "\nEnjoy the REPL.") + (interactive-repl (current-environment)))) -- cgit v1.2.3