diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-10 23:29:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-10 23:29:11 +0000 |
commit | 4969b2891f8df93f78b94dc44dbf0543465255f5 (patch) | |
tree | c3b11f09fe984c93263670c6c655c406564fcd23 /src/tests/test-switch.wrapper | |
parent | df065a2ef3e40f7c002e286b2a45811a7227776a (diff) | |
download | nsss-4969b2891f8df93f78b94dc44dbf0543465255f5.tar.xz |
Fix, test and document nsssd-switch
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tests/test-switch.wrapper')
-rwxr-xr-x | src/tests/test-switch.wrapper | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test-switch.wrapper b/src/tests/test-switch.wrapper index 5117400..387595f 100755 --- a/src/tests/test-switch.wrapper +++ b/src/tests/test-switch.wrapper @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -ex S=./.test-switch-socket F=./.test-switch-fifo @@ -7,13 +7,13 @@ pid=0 cleanup () { kill $pid - rm -f $S + rm -f ${S} ${S}.lock } mkfifo $F head -n 1 < $F >/dev/null & pid=$! -s6-ipcserver -1 -- $S ./nsssd-unix > $F & +s6-ipcserver -1 -- ${S} ./nsssd-unix > $F & wait $pid pid=$! rm -f $F |