Blame SOURCES/0002-Don-t-run-the-002-keygen-tests-when-root.patch

9e3cff
From 6224c3aa01665edddbda1ec7d1e35b03823eefcb Mon Sep 17 00:00:00 2001
9e3cff
From: root <root@ci-vm-10-0-137-168.hosted.upshift.rdu2.redhat.com>
9e3cff
Date: Wed, 7 Dec 2022 14:50:01 -0500
9e3cff
Subject: [PATCH] Don't run the 002-keygen-* tests when root
9e3cff
9e3cff
The permissions tests will fail.
9e3cff
---
9e3cff
 tests/002-keygen-dbm/prequal.sh | 5 +++++
9e3cff
 1 file changed, 5 insertions(+)
9e3cff
 create mode 100755 tests/002-keygen-dbm/prequal.sh
9e3cff
9e3cff
diff --git a/tests/002-keygen-dbm/prequal.sh b/tests/002-keygen-dbm/prequal.sh
9e3cff
new file mode 100755
9e3cff
index 0000000..b6c16e0
9e3cff
--- /dev/null
9e3cff
+++ b/tests/002-keygen-dbm/prequal.sh
9e3cff
@@ -0,0 +1,5 @@
9e3cff
+#!/bin/sh
9e3cff
+if test `id -u` -eq 0 ; then
9e3cff
+       echo "This test won't work right if run as root."
9e3cff
+       exit 1
9e3cff
+fi
9e3cff
-- 
9e3cff
2.31.1