diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-10-08 20:58:22 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-10-13 19:43:07 +0100 |
commit | bcf9975fa19050e07d6724992a75ebde4b0156c5 (patch) | |
tree | b7d0aab488686df7243ee4d999593a2409c624f7 /tests/python/daemon.md | |
parent | 630c7ffc4605f7c166d4e86d4147f9e3747e8cbd (diff) | |
download | subplot-bcf9975fa19050e07d6724992a75ebde4b0156c5.tar.gz |
tests: Fix up use of absolute paths for false/true/echo etc.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'tests/python/daemon.md')
-rw-r--r-- | tests/python/daemon.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/python/daemon.md b/tests/python/daemon.md index 285f9f8..6d9b8f4 100644 --- a/tests/python/daemon.md +++ b/tests/python/daemon.md @@ -17,11 +17,11 @@ This scenario starts a background process, verifies it's started, and verifies it's terminated after the scenario ends. ~~~scenario -given there is no "/bin/sleep 12765" process -when I start "/bin/sleep 12765" as a background process as sleepyhead -then a process "/bin/sleep 12765" is running +given there is no "sleep 12765" process +when I start "sleep 12765" as a background process as sleepyhead +then a process "sleep 12765" is running when I stop background process sleepyhead -then there is no "/bin/sleep 12765" process +then there is no "sleep 12765" process ~~~ @@ -68,12 +68,12 @@ This scenario verifies that if the background process never starts listening on its port, the daemon library handles that correctly. ~~~scenario -given there is no "/bin/sleep 12765" process -when I try to start "/bin/sleep 12765" as sleepyhead, on port 8888 +given there is no "sleep 12765" process +when I try to start "sleep 12765" as sleepyhead, on port 8888 then starting daemon fails with "ConnectionRefusedError" -then a process "/bin/sleep 12765" is running +then a process "sleep 12765" is running when I stop background process sleepyhead -then there is no "/bin/sleep 12765" process +then there is no "sleep 12765" process ~~~ @@ -101,7 +101,7 @@ have had time to produce it yet. ~~~{#chatty-daemon.sh .file .sh .numberLines} -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail |