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 PGP Key: C1F3 3EE2 0C52 8FDB 7DD7 011F 49E3 EE22 1917 25EE Freenode handle: mdevos