diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2018-03-29 11:01:47 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-04-05 14:13:49 +0000 |
commit | fdcf633a33bbbfbc99268965ef5da03a4770619b (patch) | |
tree | 59be1ab815261e106220a4691766830b58657ac0 /test/e2e/hooks | |
parent | ca3b2414516c04125f986775c0cbce27f0f1e505 (diff) | |
download | podman-fdcf633a33bbbfbc99268965ef5da03a4770619b.tar.gz podman-fdcf633a33bbbfbc99268965ef5da03a4770619b.tar.bz2 podman-fdcf633a33bbbfbc99268965ef5da03a4770619b.zip |
Add hooks support to podman
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #155
Approved by: mheon
Diffstat (limited to 'test/e2e/hooks')
-rw-r--r-- | test/e2e/hooks/checkhook.json | 5 | ||||
-rwxr-xr-x | test/e2e/hooks/checkhook.sh | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/hooks/checkhook.json b/test/e2e/hooks/checkhook.json new file mode 100644 index 000000000..5a9bc86d1 --- /dev/null +++ b/test/e2e/hooks/checkhook.json @@ -0,0 +1,5 @@ +{ + "cmd" : [".*"], + "hook" : "/tmp/checkhook.sh", + "stage" : [ "prestart" ] +} diff --git a/test/e2e/hooks/checkhook.sh b/test/e2e/hooks/checkhook.sh new file mode 100755 index 000000000..8b755cb40 --- /dev/null +++ b/test/e2e/hooks/checkhook.sh @@ -0,0 +1,4 @@ +#!/bin/sh +echo $@ >> /run/hookscheck +read line +echo $line >> /run/hookscheck |