From a07043f308ee91223b1048a6ca1c878c31b0f83a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 28 May 2019 16:46:41 +0200 Subject: tests/run: use the current date as Message-ID in `sample_message`. A random 128-bit UUID obtained from /proc/sys/kernel/random/uuid works too but is Linux-specific and requires the proc(5) pseudo-filesystem to be mounted at /proc. --- tests/run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/run b/tests/run index 91319f3..fca4919 100755 --- a/tests/run +++ b/tests/run @@ -133,11 +133,12 @@ doveadm() { # Sample (random) message sample_message() { + local date="$(date +"%s.%N")" cat <<-EOF From: To: - Date: $(date -R) - Message-ID: <$(< /proc/sys/kernel/random/uuid)@example.net> + Date: $(date -R -d@"$date") + Message-ID: <$date@example.net> EOF local len="$(shuf -i1-4096 -n1)" -- cgit v1.2.3