Skip to content
Snippets Groups Projects
Commit a3b6bee6 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Merge branch 'wip/d4s/subtree_update' into 'apertis/v2020dev0'

Update common subtree

See merge request !3
parents 94a4bcfa d2dc3629
Branches apertis/v2021
No related tags found
1 merge request!3Update common subtree
......@@ -7,12 +7,15 @@ usage () {
echo "'$0 pull' is used to update the common subtree in tests"
}
branch="$(git symbolic-ref --short HEAD)"
test -z "$branch" && branch="master"
case $1 in
pull)
git subtree pull -P common git@gitlab.apertis.org:tests/common.git master
git subtree pull -P common git@gitlab.apertis.org:tests/common.git "$branch"
;;
add)
git subtree add -P common git@gitlab.apertis.org:tests/common.git master
git subtree add -P common git@gitlab.apertis.org:tests/common.git "$branch"
;;
*) usage;;
esac
......@@ -124,7 +124,14 @@ sleep 3
# Get audit information from journal
AUDIT_FILE=${TMP_DIR}/AUDIT
journalctl -S "${START_TIME}" -t audit -o cat > ${AUDIT_FILE}
uid=$(id -u)
JOURNALCTL="journalctl"
if [ "${UID}" != "0" ]
then
JOURNALCTL="sudo journalctl"
fi
${JOURNALCTL} -S "${START_TIME}" -t audit -o cat > ${AUDIT_FILE}
echo "#=== ${TEST_TITLE} ==="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment