summaryrefslogtreecommitdiffstats
path: root/mockit
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-11-19 10:57:41 +0100
committerRemi Collet <remi@php.net>2024-11-19 10:57:41 +0100
commitdf49bfd377f9a0e7402e2ffb4770a2f3ab2648ed (patch)
tree0c2f5894d0aa89163774e546b32f90c0fe10aa62 /mockit
parent4e47b1c4178d91d211ac87d41d859b6c8f6568c8 (diff)
EL-10 helpers
Diffstat (limited to 'mockit')
-rwxr-xr-xmockit12
1 files changed, 7 insertions, 5 deletions
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 $@