From 2e20d08a33f780c68dd29e30b81efd8249976dda Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 7 Jan 2023 16:25:01 +0900 Subject: [PATCH] test/{ipc,uipc}: Fix the path to the JSON schema validator The test specs for the ipc and uipc modules assume to be executed in the test directory. Thus, they call the JSON schema validator using a path that is relative to the test directory. However, the test specs should assume to be executed in the root directory of the source tree. This commit changes the paths to the JSON schema validator in the test specs for the ipc and uipc modules so they are relative to the root of the source tree. --- test/ipc_spec.sh | 4 ++-- test/uipc_spec.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/ipc_spec.sh b/test/ipc_spec.sh index 2a699d6..4657b7f 100644 --- a/test/ipc_spec.sh +++ b/test/ipc_spec.sh @@ -285,7 +285,7 @@ Describe "Message" return 1 fi - if ! ../spec/validate.py ../spec/ipc_envelope.schema.json <(_ipc_decode "$msg"); then + if ! spec/validate.py spec/ipc_envelope.schema.json <(_ipc_decode "$msg"); then return 1 fi @@ -304,7 +304,7 @@ Describe "Message" return 1 fi - if ! ../spec/validate.py ../spec/ipc_message.schema.json \ + if ! spec/validate.py spec/ipc_message.schema.json \ <(_ipc_get "$msg" "message" | _ipc_decode); then return 1 fi diff --git a/test/uipc_spec.sh b/test/uipc_spec.sh index 9f0e22d..94209ea 100644 --- a/test/uipc_spec.sh +++ b/test/uipc_spec.sh @@ -173,7 +173,7 @@ Describe "Message" return 1 fi - if ! ../spec/validate.py ../spec/ipc_message.schema.json <(_uipc_decode "$msg"); then + if ! spec/validate.py spec/ipc_message.schema.json <(_uipc_decode "$msg"); then return 1 fi -- 2.47.3