projects/guix·blob python-team · refs

37 lines · 1.2 KiB

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