From a58a6b93527661597c5b9c82c528c16db5a5fde3 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 6 May 2021 14:35:12 +0200 Subject: [PATCH] scalar: disable authentication in unattended mode Modified to remove call to is_unattended() that has not been implemented yet. Signed-off-by: Johannes Schindelin --- t/t9099-scalar.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t9099-scalar.sh b/t/t9099-scalar.sh index 62b92d361e2bfd..886c32ece1cccd 100755 --- a/t/t9099-scalar.sh +++ b/t/t9099-scalar.sh @@ -7,6 +7,13 @@ test_description='test the `scalar` command' GIT_TEST_MAINT_SCHEDULER="crontab:test-tool crontab ../cron.txt,launchctl:true,schtasks:true" export GIT_TEST_MAINT_SCHEDULER +# Do not write any files outside the trash directory +Scalar_UNATTENDED=1 +export Scalar_UNATTENDED + +GIT_ASKPASS=true +export GIT_ASKPASS + test_expect_success 'scalar shows a usage' ' test_expect_code 129 scalar -h '