From 1b434111a18680a97e9997af71c261058cabc5fa Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 1 Dec 2022 17:11:32 +0900 Subject: [PATCH] tests: Put a workaround for semihosted environment. * tests/openpgp/defs.scm [*win32*]: Use --build-prefix option. -- On the semihosted environment, output of simple gpgconf --list-components includes drive name (like Z:), which results failure of command invocation. This is a workaround. Signed-off-by: NIIBE Yutaka --- tests/openpgp/defs.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/openpgp/defs.scm b/tests/openpgp/defs.scm index 5122a8e30..bf3714f50 100644 --- a/tests/openpgp/defs.scm +++ b/tests/openpgp/defs.scm @@ -146,6 +146,9 @@ (gpg-conf' "" args)) (define (gpg-conf' input args) (let ((s (call-popen `(,(tool-hardcoded 'gpgconf) + ,@(if *win32* + (list '--build-prefix (getenv "objdir")) + '()) ,@args) input))) (map (lambda (line) (map percent-decode (string-split line #\:))) (string-split-newlines s))))