From a521a4b7313d7c71e128dc7418303e5eb15820f0 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Sun, 2 Aug 2015 22:51:45 +0200 Subject: [PATCH] Use variable to clarify test case --- tests/test_plugin_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_plugin_update.sh b/tests/test_plugin_update.sh index 93fced6..e5dafe6 100755 --- a/tests/test_plugin_update.sh +++ b/tests/test_plugin_update.sh @@ -42,7 +42,8 @@ test_plugin_installation_via_script() { manually_install_the_plugin - script_run_helper "$TPM_DIR/bin/update_plugins" 'usage' 1 || + local expected_exit_code=1 + script_run_helper "$TPM_DIR/bin/update_plugins" 'usage' "$expected_exit_code" || fail_helper "[script] running update plugins without args should fail" script_run_helper "$TPM_DIR/bin/update_plugins tmux-example-plugin" '"tmux-example-plugin" update success' ||