Skip to content

Commit 87af620

Browse files
committed
try fix permissions in docker
1 parent 35d1e32 commit 87af620

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.dbwebb/test/run.d.bash

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ Usage: 'dbwebb test <flag> <arguments> <optional args...>'
7272
esac
7373
done;
7474

75-
75+
echo "ssätter upp log var"
7676
# Prepare the logdir and logfile
7777
LOG_DIR="$COURSE_REPO_BASE/.log/test"
7878
[[ -d $LOG_DIR ]] || install -d "$LOG_DIR"
7979
export LOG="$( realpath "$COURSE_REPO_BASE/.log/test/$TESTSUITE.log" )"
80+
echo "$LOG"
8081
(( $? == 0 )) || exit 2
8182
> "$LOG" || exit 1
82-
83+
echo "klar att sätta upp log var i run.d.bash"
8384

8485

8586
# Export to be used in test scripts
@@ -103,6 +104,7 @@ function header {
103104
# Log to summary
104105
#
105106
function doLog {
107+
echo "inne i do log i run.d.bash"
106108
if (( $1 )); then
107109
echo "[-] $2
108110
===========================================================" | tee -a "$LOG"
@@ -142,9 +144,9 @@ printf "[%s] %s %s %s\n" "$ACRONYM" "$TARGET" "$TESTSUITE" "$( date )"
142144
for file in "${files[@]}"; do
143145
output=
144146
target="scripts.d/${file}.d.bash"
145-
147+
echo "startar ${file}.d.bash filen"
146148
echo && header "$target"
147-
149+
echo "kör ${DIR}/$target"
148150
bash "${DIR}/$target"
149151
if (( $? )); then
150152
output="$MSG_FAILED $target
@@ -156,10 +158,10 @@ for file in "${files[@]}"; do
156158
printf "$output"
157159
summary="$summary$output"
158160
done
159-
161+
echo "skriver till log i slutet av run.d.bash"
160162
# Adding summary to log-file
161163
printf "\n\n$(header "Test summary")
162164
$summary\n" | tee -a "$LOG"
163-
165+
echo "sista utskrift i slutet av run.d.bash"
164166
printf " --------------------------------------------
165167
Saved a log of the test output: less -R '$LOG'\n" | tee -a "$LOG"

0 commit comments

Comments
 (0)