From df49bfd377f9a0e7402e2ffb4770a2f3ab2648ed Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 19 Nov 2024 10:57:41 +0100 Subject: EL-10 helpers --- mockit | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mockit') diff --git a/mockit b/mockit index c3a3c1d..1dcd8f5 100755 --- a/mockit +++ b/mockit @@ -37,9 +37,11 @@ fi # Queue commands if [ "$1" == "--list" ]; then echo "-- x86_64 queue: $($REDISCLI scard mockx) tasks --" - $REDISCLI smembers mockx - echo "-- aarch64 queue: $($REDISCLI scard mocka) tasks --" - $REDISCLI smembers mocka + a=$($REDISCLI smembers mockx) + [ -n "$a" ] && $REDISCLI smembers mockx || ps -ef | grep mock/mock | grep -v grep + echo -e "\n-- aarch64 queue: $($REDISCLI scard mocka) tasks --" + a=$($REDISCLI smembers mocka) + [ -n "$a" ] && $REDISCLI smembers mocka || ps -ef | ssh remi@ampere 'ps -ef | grep mock/mock' exit 0 elif [ "$1" == "--clean" ]; then $REDISCLI del mockx @@ -132,7 +134,7 @@ fi # PHP version matrix echo mockit $SRPM $DIST $MIN $MAX $@ case $DIST in - fc39x|fc39a|fc40x|fc40a|fc41x|fc41a|el9x|el9a) + fc39x|fc39a|fc40x|fc40a|fc41x|fc41a|el9x|el9a|el10x|el10a) LST="82 81 74 80 83 84" SCL="74 80 81 82 83 84" ;; @@ -146,7 +148,7 @@ case $DIST in ;; allx) if [ $REDIS -ge 1 ]; then - for i in fc39x fc40x fc41x el8x el9x fc39a fc40a fc41a el8a el9a + for i in fc39x fc40x fc41x el8x el9x el10x fc39a fc40a fc41a el8a el9a el10a do [ $BUILD_BASE -ge 1 ] && $0 --valkey --base $SRPM $i $MIN $MAX $@ [ $BUILD_SCLS -ge 1 ] && $0 --valkey --scl $SRPM $i $MIN $MAX $@ -- cgit