From 584ac3d46ed184db2e8aab4e6e537629ffe3a271 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 6 Sep 2016 10:45:36 +0200 Subject: [PATCH] Fix link test to check properly --- imag-link/tests/link-test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imag-link/tests/link-test.sh b/imag-link/tests/link-test.sh index 9de309ac..1f422f96 100644 --- a/imag-link/tests/link-test.sh +++ b/imag-link/tests/link-test.sh @@ -50,16 +50,16 @@ test_linking_links() { imag-link internal add --from "test" --to "test2" - if [[ "$(entry_linked_to 'test')" == "$(cat_entry 'test2')" ]]; + if [[ "$(entry_linked_to '"test"')" != "$(cat_entry 'test2')" ]]; then err "Linking to 'test' didn't succeed for 'test2'" - err $(cat_entry 'test2') + err "\n$(cat_entry 'test2')\n" fi - if [[ "$(entry_linked_to 'test2')" == "$(cat_entry 'test')" ]]; + if [[ "$(entry_linked_to '"test2"')" != "$(cat_entry 'test')" ]]; then err "Linking to 'test2' didn't succeed for 'test'" - err $(cat_entry 'test') + err "\n$(cat_entry 'test')\n" fi }