[PATCH 1/1] Add BUP_TEST_RANDOM_SEED

1 view
Skip to first unread message

Rob Browning

unread,
Jul 1, 2022, 6:04:08 PM7/1/22
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
---

Proposed.

GNUmakefile | 3 +++
1 file changed, 3 insertions(+)

diff --git a/GNUmakefile b/GNUmakefile
index 49d0c78d..812ea388 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -4,6 +4,9 @@ MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.DEFAULT_GOAL := all

+# So where possible we can make tests more reproducible
+export BUP_TEST_RANDOM_SEED ?= $(shell echo "$$RANDOM")
+
# Guard against accidentally using/testing a local bup
export PATH := $(CURDIR)/dev/shadow-bin:$(PATH)

--
2.30.2

Rob Browning

unread,
Jul 9, 2022, 2:46:08 PM7/9/22
to bup-...@googlegroups.com
Rob Browning <r...@defaultvalue.org> writes:

> Signed-off-by: Rob Browning <r...@defaultvalue.org>

Pushed.

--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
Reply all
Reply to author
Forward
0 new messages