summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGordan Markuš <gordan.markus@pelagicore.com>2017-06-16 07:39:55 +0200
committerChristoph Lipka <clipka@users.noreply.github.com>2017-06-16 07:39:55 +0200
commit2c22c1a605d17b61c4fc17cbc1fc5499b796a39d (patch)
tree9e0757efabbf0fc4ca0bccc7c499de8485ff89a2 /tests
parent41c2edac3417dcfadc9805a2b98517a06be6eaf5 (diff)
downloadDLT-daemon-2c22c1a605d17b61c4fc17cbc1fc5499b796a39d.tar.gz
journald adaptor: test with sudo privileges (#18)
Users in the 'systemd-journal' group can see all journalctl messages. Usually the user is not found in that group and the "start_systemd_journal_test.sh" script might hang because of this. Starting "dlt-system" with sudo privileges will mitigate this risk. Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/start_systemd_journal_test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/start_systemd_journal_test.sh b/tests/start_systemd_journal_test.sh
index 9789828..204a4c9 100755
--- a/tests/start_systemd_journal_test.sh
+++ b/tests/start_systemd_journal_test.sh
@@ -12,7 +12,7 @@ sudo vim -esnc '%s/JournalEnable = 0/JournalEnable = 1/g|:wq' /usr/local/etc/dlt
dlt-daemon &
sleep 1
#start dlt_system
-dlt-system &
+sudo dlt-system &
sleep 1
#send 10 times "DLT SYSTEM JOURNAL TEST"
for i in {1..1000}
@@ -27,7 +27,7 @@ wait $pid
exitcode=$?
# kill processes, receiver automatically killed with daemon
pkill dlt-daemon
-pkill dlt-system
+sudo pkill dlt-system
# if exit code == 159 , test successfull
tput setaf 1
if [ $exitcode == 159 ]; then