Test example that does its best to break scriptform.

pull/7/head
Ferry Boender 9 years ago
parent ca55acf980
commit c44af08f64
  1. 4
      examples/test/README.md
  2. 11
      examples/test/job_zombie.sh
  3. 14
      examples/test/test.json

@ -0,0 +1,4 @@
ScriptForm test example
=========================
This example does its best to break scriptform.

@ -0,0 +1,11 @@
#!/bin/sh
# This starts a child process in the background which will block since its file
# descriptors are still tied to us.
sleep 10000 &> /dev/null
echo "some test error" >&2
cat /usr/share/dict/american-english
exit 1

@ -0,0 +1,14 @@
{
"title": "Test server",
"forms": [
{
"name": "zombie",
"title": "Zombie process",
"description": "",
"submit_title": "Start background process",
"script": "job_zombie.sh",
"fields": [
]
}
]
}
Loading…
Cancel
Save