From 47d8bceaac3e809b39d6e73951581fd6a3e5c4b1 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Sun, 21 Apr 2024 22:01:54 +0800 Subject: [PATCH] 240421.220154.HKT revise .cirrus.yml --- .cirrus.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 1e196253f7..da93a0d736 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -130,8 +130,8 @@ task: ROOT_DIR=$(git rev-parse --show-toplevel) cd $ROOT_DIR/fortran/tests - # Decide the solver to test by date - SOLVER_NUM=$(($(date +%-d) % 5)) + # Decide a random solver to test by $(date + %N) + SOLVER_NUM=$(($(date +%N) % 5)) if [ $SOLVER_NUM -eq 0 ] ; then SOLVER=uobyqa elif [ $SOLVER_NUM -eq 1 ] ; then @@ -145,11 +145,15 @@ task: fi echo $SOLVER_NUM $SOLVER - # Decide the real kind by date - RK=$((2**($(date +%-d) % 3 + 2))) + # Decide a random integer kind to test by $(date +%N) + IK=$((2**($(date +%N) % 3 + 1))) + echo $IK + + # Decide a random real kind to test by $(date +%N) + RK=$((2**($(date +%N) % 3 + 2))) echo $RK - $MK clean && $MK gtest_i2_r${RK}_d1_tst.$SOLVER + $MK clean && $MK gtest_i${IK}_r${RK}_d1_tst.$SOLVER on_failure: