Fix findings by ShellCheck

This commit is contained in:
Václav Kadlčík 2024-07-01 14:45:47 +02:00
commit 260e65ce49
2 changed files with 11 additions and 8 deletions

View file

@ -88,6 +88,9 @@ rlJournalStart
# virtual provisioned for Fedora CI in testing-farm.io)
# TODO Re-evaluate.
;;
mysql)
# Needs to link libquadmath. TODO Submit as a bugreport
;;
*)
if rlRun "pushd '$tests_dir'"; then
rlRun "../../../b2 -d1 >../../../upstream_tests_logs/${lib_name}.out 2>../../../upstream_tests_logs/${lib_name}.err"

View file

@ -38,7 +38,7 @@ done
# usage of 'set -x'.
session=''; i=0; while true; do
session="${script_name%.sh}-${i}"
tmux has-session -t $session &>/dev/null || break
tmux has-session -t "$session" &>/dev/null || break
(( i+=1 ))
done
started=false
@ -50,19 +50,19 @@ for (( i=0; i<${#target_matrix[@]}; i++ )); do
command="set -x; testing-farm request --arch=$arch --hardware=memory='>= 8 GiB' --hardware=disk.size='>= 60 GiB' --compose=$compose -c distro=$distro -c arch=$arch --plan=all_tests; echo EXIT_VALUE=\$?; read PRESS_ANY_KEY"
if ! $started; then
set -x
tmux new-session -s $session -d "$command"
tmux new-session -s "$session" -d "$command"
set +x
started=true
else
set -x
tmux split-window -t $session -d "$command"
tmux select-layout -t $session even-vertical
tmux select-pane -t $session -D
tmux split-window -t "$session" -d "$command"
tmux select-layout -t "$session" even-vertical
tmux select-pane -t "$session" -D
set +x
fi
sleep 2
done
set -x
tmux select-pane -t $session
tmux select-layout -t $session tiled
tmux attach-session -t $session
tmux select-pane -t "$session"
tmux select-layout -t "$session" tiled
tmux attach-session -t "$session"