From 0ddac9b92eb4bf4b7a1b2c7041c6887c98dee38a Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Sun, 20 Feb 2022 15:15:14 +0100 Subject: [PATCH] Enable CTest in the %check phase -- Related: #2092371 #2092370 --- galera.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/galera.spec b/galera.spec index b9de0c3..93c8cd4 100644 --- a/galera.spec +++ b/galera.spec @@ -105,6 +105,11 @@ sed -i 's;/usr/bin/garbd;/usr/sbin/garbd;g' %{buildroot}/usr/sbin/garb-systemd ## via the DynamicUser= service setting. sed -i 's/User=nobody/User=garb/g' %{buildroot}/usr/lib/systemd/system/garbd.service + +%check +%ctest + + %pre /usr/sbin/useradd -M -r -d /dev/null -s /sbin/nologin -c "Galera Arbitrator Daemon" garb >/dev/null 2>&1 || :