summaryrefslogtreecommitdiff
path: root/tests/pipeline/unhandled-error/project.conf
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2018-01-19 15:14:13 +0000
committerJim MacArthur <jim.macarthur@codethink.co.uk>2018-03-22 18:44:53 +0000
commit2053ee754fcb83a28f5a85b043f2ecdf4b9b33d7 (patch)
treef0db3674f3818a552df385de39954fc39f619972 /tests/pipeline/unhandled-error/project.conf
parent9c418946bb55fa1e4cf2216f1dff316482b3484a (diff)
downloadbuildstream-2053ee754fcb83a28f5a85b043f2ecdf4b9b33d7.tar.gz
Add a test for unhandled exceptions.
This reproduces one of the conditions which caused issue #197. The test uses subprocess instead of the usual Cli class because with Cli.invoke(), PyTest would handle the exception before our custom excepthook has a chance to.
Diffstat (limited to 'tests/pipeline/unhandled-error/project.conf')
-rw-r--r--tests/pipeline/unhandled-error/project.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pipeline/unhandled-error/project.conf b/tests/pipeline/unhandled-error/project.conf
new file mode 100644
index 000000000..20a234413
--- /dev/null
+++ b/tests/pipeline/unhandled-error/project.conf
@@ -0,0 +1,11 @@
+# Basic project configuration that doesnt override anything
+#
+name: pony
+
+# Whitelist the local test Source "errorplugin" to be loaded
+#
+plugins:
+- origin: local
+ path: errorplugin
+ sources:
+ preflighterror: 0