From 0a6efbded9e4041402a0f0f4b7460c2f84daf492 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Jun 2025 21:01:06 +1200 Subject: [PATCH] 'Generic Commit' --- whatsdirty/test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/whatsdirty/test.sh b/whatsdirty/test.sh index 78bc06c..0633b7f 100755 --- a/whatsdirty/test.sh +++ b/whatsdirty/test.sh @@ -39,6 +39,9 @@ cleanup() { trap cleanup EXIT echo "Testing whatsdirty.sh configuration behavior..." +echo "Working directory: $(pwd)" +echo "Script path: $WHATSDIRTY_SCRIPT" +echo "Config file: $CONFIG_FILE" echo # Backup existing config if it exists @@ -95,6 +98,7 @@ fi # Test 4: Running with new directory should update config echo -e "\nTest 4: Run with different directory" +# Use the parent directory (should exist) NEW_TEST_DIR="$SCRIPT_DIR/.." if [ -d "$NEW_TEST_DIR" ]; then CANONICAL_DIR=$(cd "$NEW_TEST_DIR" && pwd) @@ -103,6 +107,8 @@ if [ -d "$NEW_TEST_DIR" ]; then print_test "Config updated with new directory" "PASS" else print_test "Config updated with new directory" "FAIL" + echo " Expected: $CANONICAL_DIR" + echo " Got: $(cat "$CONFIG_FILE" 2>/dev/null || echo "file not found")" fi else print_test "Config updated with new directory" "SKIP (test directory not found)"