| 1 | From 9c897545e73aa054d139f2f3c20ae7b8935080a2 Mon Sep 17 00:00:00 2001
|
| 2 | From: Sergey Trofimov <[email protected]>
|
| 3 | Date: Sun, 17 May 2026 11:31:49 +0200
|
| 4 | Subject: [PATCH] Fix tests
|
| 5 |
|
| 6 | TESTSCRIPT_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 |
|
| 12 | diff --git a/main_test.go b/main_test.go
|
| 13 | index 69d910b..1ea1a22 100644
|
| 14 | |
| 15 | |
| 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))
|
| 25 | diff --git a/testdata/scripts/show.txt b/testdata/scripts/show.txt
|
| 26 | index d9833ba..1aeda47 100644
|
| 27 | |
| 28 | |
| 29 | @@ -14,4 +14,4 @@ fdroidcl show org.pocketworkstation.pckeyboard info.metadude.android.bitsundbaeu
|
| 30 | ! stdout '&apos'
|
| 31 | ! stdout '&'
|
| 32 | stdout 'Name.*Hacker''s Keyboard'
|
| 33 | -stdout 'Version.*Bits-und-Baeume'
|
| 34 | +stdout 'Version.*Bits & Bäume'
|
| 35 | --
|
| 36 | 2.54.0
|
| 37 |
|