]> git.corax.cc Git - toolbox/commitdiff
test/{ipc,uipc}: Fix the path to the JSON schema validator
authorMatthias Kruk <m@m10k.eu>
Sat, 7 Jan 2023 07:25:01 +0000 (16:25 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 7 Jan 2023 07:25:01 +0000 (16:25 +0900)
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
test/uipc_spec.sh

index 2a699d6c01f7e540237162b1efbd3dbb7fb809ca..4657b7f2125579a068c76fe1076f3dbbb8f35ba9 100644 (file)
@@ -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
index 9f0e22dc17721cf1a77c637c0c603acd2599b57c..94209ea546fda96833e9b4691250c818947955a5 100644 (file)
@@ -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