about summary refs log tree commit diff
path: root/pkgs/by-name/ky/kyua/kyua-check-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ky/kyua/kyua-check-hook.sh')
-rw-r--r--pkgs/by-name/ky/kyua/kyua-check-hook.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/by-name/ky/kyua/kyua-check-hook.sh b/pkgs/by-name/ky/kyua/kyua-check-hook.sh
new file mode 100644
index 0000000000000..0e8f724d5b4ea
--- /dev/null
+++ b/pkgs/by-name/ky/kyua/kyua-check-hook.sh
@@ -0,0 +1,10 @@
+kyuaCheckPhase() {
+    runHook preCheck
+    # Kyua expects to save test results in ~/.kyua/store
+    HOME=$TMPDIR kyua test
+    runHook postCheck
+}
+
+if [ -z "${dontUseKyuaCheck-}" ] && [ -z "${checkPhase-}" ]; then
+    checkPhase=kyuaCheckPhase
+fi