summaryrefslogtreecommitdiff
path: root/libpod/events/events_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-07-11 13:32:42 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-08-05 14:40:28 -0400
commitc528d7a622267fcee0f38f25c94198b23deed9dd (patch)
tree5b4f6a4fe723428ee317fbcd6c0588506fac8233 /libpod/events/events_linux.go
parent58b1b99982cdaad5e0d5eccaf008aa343f8fefd2 (diff)
downloadpodman-c528d7a622267fcee0f38f25c94198b23deed9dd.tar.gz
podman-c528d7a622267fcee0f38f25c94198b23deed9dd.tar.bz2
podman-c528d7a622267fcee0f38f25c94198b23deed9dd.zip
Use file-based eventer for integration tests
This adds several top-level Podman flags for specifying different events backend types, which are then used in CI. It resolves a number of serious issues with events-based testing. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/events/events_linux.go')
-rw-r--r--libpod/events/events_linux.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events/events_linux.go b/libpod/events/events_linux.go
index 11f309574..ffb100be8 100644
--- a/libpod/events/events_linux.go
+++ b/libpod/events/events_linux.go
@@ -18,8 +18,10 @@ func NewEventer(options EventerOptions) (eventer Eventer, err error) {
}
case strings.ToUpper(LogFile.String()):
eventer = EventLogFile{options}
+ case strings.ToUpper(Null.String()):
+ eventer = NewNullEventer()
default:
- return eventer, errors.Errorf("unknown event logger type: %s", strings.ToUpper(options.EventerType))
+ return nil, errors.Errorf("unknown event logger type: %s", strings.ToUpper(options.EventerType))
}
return eventer, nil
}