1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-14 22:24:06 +02:00
Files
guix/gnu/packages/patches/fdroidcl-fix-tests.patch
Sergey Trofimov f53e34191e gnu: fdroidcl: Update to 0.8.1.
* gnu/packages/patches/fdroidcl-fix-tests.patch: New file.
* gnu/local.mk: Register new patch.
* gnu/packages/android.scm (fdroidcl): Update to 0.8.1.
[source]: Add the patch.
[arguments]<#:tests>: Enable tests.
[inputs]: Add go-github-com-pelletier-go-toml-v2 and
go-github-com-rogpeppe-go-internal.

Merges: guix/guix!7843
Change-Id: I0a891a7f36890c41a777eabd724bd9afccfda354
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-05-17 11:02:07 +01:00

38 lines
1.2 KiB
Diff

From 9c897545e73aa054d139f2f3c20ae7b8935080a2 Mon Sep 17 00:00:00 2001
From: Sergey Trofimov <sarg@sarg.org.ru>
Date: Sun, 17 May 2026 11:31:49 +0200
Subject: [PATCH] Fix tests
TESTSCRIPT_COMMAND got removed long time ago: https://github.com/rogpeppe/go-internal/commit/dc4b49510d96256f881880b9802536a6a70edfcc
---
main_test.go | 2 +-
testdata/scripts/show.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/main_test.go b/main_test.go
index 69d910b..1ea1a22 100644
--- a/main_test.go
+++ b/main_test.go
@@ -15,7 +15,7 @@ import (
)
func TestMain(m *testing.M) {
- if os.Getenv("TESTSCRIPT_COMMAND") == "" {
+ if filepath.Base(os.Args[0]) != "fdroidcl" {
// start the static http server once
path := filepath.Join("testdata", "staticrepo")
fs := http.FileServer(http.Dir(path))
diff --git a/testdata/scripts/show.txt b/testdata/scripts/show.txt
index d9833ba..1aeda47 100644
--- a/testdata/scripts/show.txt
+++ b/testdata/scripts/show.txt
@@ -14,4 +14,4 @@ fdroidcl show org.pocketworkstation.pckeyboard info.metadude.android.bitsundbaeu
! stdout '&apos'
! stdout '&amp'
stdout 'Name.*Hacker''s Keyboard'
-stdout 'Version.*Bits-und-Baeume'
+stdout 'Version.*Bits & Bäume'
--
2.54.0