Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 12, 2023
1 parent 47142f7 commit 3837717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ci/installation/run_installation_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selecti
# y build local docs
# n no kiosk mode
# y install node
# rfid reader
# y dont reboot
# n dont reboot
# 'y\n n\n'


"$local_install_script_path"/install-jukebox.sh <<< $'y\nn\nn\nn\nn\nn\ny\ny\ny\nn\ny\nn3\ny\n'
"$local_install_script_path"/install-jukebox.sh <<< $'y\nn\nn\nn\nn\nn\ny\ny\ny\nn\ny\nn\n'
INSTALLATION_EXITCODE=$?

# count abortion due to "not user pi" as success
Expand Down
7 changes: 6 additions & 1 deletion installation/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@ download_jukebox_source() {
checkPrerequisite

### RUN INSTALLATION
cd "${HOME_PATH}"
INSTALLATION_LOGFILE="${HOME_PATH}/INSTALL-${INSTALL_ID}.log"
exec 3>&1 1>>"${INSTALLATION_LOGFILE}" 2>&1 || { echo "Cannot create log file. Panic."; exit 1; }
if [ "$DOCKER_RUNNING" == "true" ]; then
exec 3>&1 2>&1
else
exec 3>&1 1>>"${INSTALLATION_LOGFILE}" 2>&1 || { echo "Cannot create log file. Panic."; exit 1; }
fi
echo "Log start: ${INSTALL_ID}"

clear 1>&3
Expand Down

0 comments on commit 3837717

Please sign in to comment.