diff --git a/playbooks/run-test-command/run.yaml b/playbooks/run-test-command/run.yaml
new file mode 100644
index 000000000..aa87128c0
--- /dev/null
+++ b/playbooks/run-test-command/run.yaml
@@ -0,0 +1,7 @@
+- hosts: all
+
+  tasks:
+    - name: Run test_command
+      command: '{{ test_command }}'
+      args:
+        chdir: '{{ zuul.project.src_dir }}'
diff --git a/zuul.yaml b/zuul.yaml
index 911e695c1..e1a0fd09a 100644
--- a/zuul.yaml
+++ b/zuul.yaml
@@ -472,3 +472,14 @@
     success-url: html/
     vars:
       npm_command: docs
+
+- job:
+    name: run-test-command
+    parent: unittests
+    description: |
+      Run simple command as test.
+
+      To use this, set the ``test_command`` variable.
+    run: playbooks/run-test-command/run.yaml
+    vars:
+      test_command: "exit 1"