[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Ludovic Courtès |
Date: |
Wed, 3 May 2023 05:41:15 -0400 (EDT) |
branch: master
commit cf4e3e4ac4a9c8d6f0d82b0a173826f15bbca7f3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed May 3 11:13:51 2023 +0200
tests: Make sure remote tests build a new derivation.
* tests/remote.scm (dummy-drv): Define 'none'.
---
tests/remote.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/remote.scm b/tests/remote.scm
index 8e4db5a..b1da03f 100644
--- a/tests/remote.scm
+++ b/tests/remote.scm
@@ -84,7 +84,10 @@
(with-store store
(derivation-file-name
(run-with-store store
- (let ((exp #~(begin
+ ;; Add a nonce to make sure a new derivation is built each time we run
+ ;; the tests.
+ (let ((exp #~(let ((nonce (list #$(car (gettimeofday))
+ #$(getpid))))
(when #$sleep
(sleep #$sleep))
(mkdir #$output))))