From 1a27dbde4e87ea733f9f68b36c2c22fc241b66ba Mon Sep 17 00:00:00 2001 From: rootiest Date: Sat, 9 May 2026 01:00:31 -0400 Subject: [PATCH] fix(tests): redirect stdin from /dev/null in uninstall test to prevent hang --uninstall prompts for config removal when stdin is a TTY. Running the test from an interactive terminal caused it to block on read. Feeding /dev/null forces the non-interactive path without changing behaviour. --- tests/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 7986dac..2ded774 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -259,7 +259,7 @@ fi # 16. Uninstall — removes installed files, config is kept in non-interactive mode it "uninstalls installed files (keeps config)" -uninstall_out=$("$COLOR_TOOL" --uninstall 2>&1) +uninstall_out=$("$COLOR_TOOL" --uninstall &1) if [[ ! -e "$HOME/.local/bin/color-tool" ]] && [[ ! -L "$HOME/.local/bin/color-tool" ]] && [[ ! -d "$XDG_DATA_HOME/color-tool" ]] &&