From 864127d1dd1758078a4913ef60dc4ff228038f4f Mon Sep 17 00:00:00 2001 From: Adam Farley Date: Tue, 17 Dec 2024 13:45:09 +0000 Subject: [PATCH] debug Signed-off-by: Adam Farley --- lib/tests/functionLibraryTests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tests/functionLibraryTests.sh b/lib/tests/functionLibraryTests.sh index b6c05d396..7c3fbbb89 100644 --- a/lib/tests/functionLibraryTests.sh +++ b/lib/tests/functionLibraryTests.sh @@ -51,7 +51,7 @@ function infoTests(){ testResults "infoTest 2" "$?" # Clean up - # info "disable" "logging" + info "disable" "logging" } # checkFileSha @@ -59,8 +59,10 @@ function checkFileShaTests(){ # Does it work when it should? checkFileSha "${sampleFileSha}" "${scriptDir}/${sampleFileName}" testResults "checkFileShaTest 1" "$?" - [[ -x ${scriptDir}/${sampleFileName} ]] && echo "D1: $(ls ${scriptDir})" + echo "D1: $(ls ${scriptDir})" + info "enable" "logging" echo "checkFileSha ${sampleFileSha} ${scriptDir}/${sampleFileName}" + info "disable" "logging" # Does it fail when we have the wrong sha? checkFileSha "12345" "${scriptDir}/${sampleFileName}" &> /dev/null