Fix test contamination when missing apps AL device 18/183018/2
authorMichal Bloch <m.bloch@samsung.com>
Fri, 29 Jun 2018 17:09:58 +0000 (19:09 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 29 Jun 2018 17:23:33 +0000 (17:23 +0000)
Some devices have neither `/dev/log_apps` nor `/dev/log_events`
and so any `apps` logs end up in `main`. For testing we disable
other users from writing to `main` but not to `apps`, so the
redirection contaminates the testing environment.

Change-Id: I915e295c188319e4fe3a0c9403df17b163f15425
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
configs/99-dlog-logger.disable-platform-logging-for-testsuite.conf

index 9df8a16..63230a9 100644 (file)
@@ -2,3 +2,8 @@
 # for more information please read /usr/share/doc/dlog/README.testsuite
 
 plog=0
+
+# remove the backup redirection from apps to main that exists in the regular config
+# `plog=0` does not prevent sending logs to `apps` and with the redirect they'd end up
+# in `main`, ruining the test environment
+apps=/dev/log_apps:/dev/log_events: