Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ofono
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tests
ofono
Commits
43d69ec8
Commit
43d69ec8
authored
2 years ago
by
Walter Lozano
Browse files
Options
Downloads
Plain Diff
Merge commit '
b1b1ded8
' into wip/wlozano/apparmor-fixes
parents
d9bf1e6c
b1b1ded8
No related branches found
Branches containing commit
No related tags found
1 merge request
!18
Better fixing of cursor use
Pipeline
#484075
passed
2 years ago
Stage: build
Changes
1
Pipelines
42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/run-aa-test
+8
-2
8 additions, 2 deletions
common/run-aa-test
with
8 additions
and
2 deletions
common/run-aa-test
+
8
−
2
View file @
43d69ec8
...
...
@@ -74,7 +74,7 @@ TMP_DIR=$(mktemp -d)
trap
"rm -rf
$TMP_DIR
; exit"
EXIT
# Log start cursor
START_CURSOR
=
"
$(
journalctl
--output-fields
=
__CURSOR
--output
=
json
-n1
|
sed
's/.*\"__CURSOR\":\"\([^\"]*\)\".*/\1/'
)
"
START_CURSOR
=
"
$(
journalctl
-t
audit
--output-fields
=
__CURSOR
--output
=
json
-n1
|
sed
's/.*\"__CURSOR\":\"\([^\"]*\)\".*/\1/'
)
"
if
[
"
${
LAUNCH_DBUS
}
"
=
"True"
]
;
then
# Start a new D-Bus session for this test
...
...
@@ -132,7 +132,13 @@ if [ "${UID}" != "0" ]
then
JOURNALCTL
=
"sudo journalctl"
fi
${
JOURNALCTL
}
--cursor
"
${
START_CURSOR
}
"
-t
audit
-o
cat
>
${
AUDIT_FILE
}
CURSOR_ARG
=
""
if
[
"
${
START_CURSOR
}
"
!=
""
]
;
then
CURSOR_ARG
=
"--after-cursor
${
START_CURSOR
}
"
fi
${
JOURNALCTL
}
${
CURSOR_ARG
}
-t
audit
-o
cat
>
${
AUDIT_FILE
}
echo
"#===
${
TEST_TITLE
}
==="
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment