summaryrefslogtreecommitdiffstats
path: root/python/mozperftest/mozperftest/tests/data/hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozperftest/mozperftest/tests/data/hook.py')
-rw-r--r--python/mozperftest/mozperftest/tests/data/hook.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mozperftest/mozperftest/tests/data/hook.py b/python/mozperftest/mozperftest/tests/data/hook.py
new file mode 100644
index 0000000000..a49406e150
--- /dev/null
+++ b/python/mozperftest/mozperftest/tests/data/hook.py
@@ -0,0 +1,7 @@
+def doit(env):
+ return "OK"
+
+
+def on_exception(env, layer, exc):
+ # swallow the error and abort the run
+ return False