[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#46216] [PATCH] Remove duplication in tests/publish.scm
From: |
Maxime Devos |
Subject: |
[bug#46216] [PATCH] Remove duplication in tests/publish.scm |
Date: |
Sun, 31 Jan 2021 19:46:02 +0100 |
User-agent: |
Evolution 3.34.2 |
Hi Guix!
In https://issues.guix.gnu.org/46214, I proposed
a draft patch for adding a ‘hook’ mechanism to
guix publish. Now I would like to write some tests.
However, it seems the following construct is duplicated
for many tests:
(call-with-new-thread
(lambda ()
(guix-publish "--port=PORT" et cetera)))
This patch series introduces some abstraction.
Currently, there is only one patch yet, but more
will follow.
"make check TESTS=tests/publish.scm" still succeeds.
(Guix version: 23a5dcce1d893b8f5c5301ae3c1af863776ed3cf
with some not-yet-upstreamed changes).
Maxime
--
Maxime Devos <maximedevos@telenet.be>
PGP Key: C1F3 3EE2 0C52 8FDB 7DD7 011F 49E3 EE22 1917 25EE
Freenode handle: mdevos
signature.asc
Description: This is a digitally signed message part
- [bug#46216] [PATCH] Remove duplication in tests/publish.scm,
Maxime Devos <=