From: Matthias Kruk Date: Sat, 17 Sep 2022 05:16:24 +0000 (+0900) Subject: test/ipc: Make setup() function idempotent X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=25e007f09a0e1bdcd346fe22f097fb7baaeb5060;p=toolbox test/ipc: Make setup() function idempotent The setup() function in the test spec for the ipc module is not idempotent, causing the second and all subsequent test cases that use it to fail. This commit modifies the setup() function so that it does not fail if it is called more than once. --- diff --git a/test/ipc_spec.sh b/test/ipc_spec.sh index 73da379..447f0d5 100644 --- a/test/ipc_spec.sh +++ b/test/ipc_spec.sh @@ -20,7 +20,7 @@ include "ipc" setup() { - if ! mkdir "/tmp/test.$$"; then + if ! mkdir -p "/tmp/test.$$"; then return 1 fi