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

Merge commit '7828e567' into apertis/v2020dev0

parents 94a4bcfa 7828e567
No related branches found
No related tags found
1 merge request!3Update common subtree
...@@ -7,12 +7,15 @@ usage () { ...@@ -7,12 +7,15 @@ usage () {
echo "'$0 pull' is used to update the common subtree in tests" 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 case $1 in
pull) 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) 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;; *) usage;;
esac esac
...@@ -124,7 +124,14 @@ sleep 3 ...@@ -124,7 +124,14 @@ sleep 3
# Get audit information from journal # Get audit information from journal
AUDIT_FILE=${TMP_DIR}/AUDIT 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} ===" 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