From 9352f6913a2690905e1a9e91eb634911ec09a7c8 Mon Sep 17 00:00:00 2001 From: mail6543210 Date: Wed, 22 Nov 2017 01:53:46 +0800 Subject: [PATCH] Add symbolic link for printf in case of command-not-found --- test/fast/Unit tests/nvm_ls_current | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fast/Unit tests/nvm_ls_current b/test/fast/Unit tests/nvm_ls_current index 8ed8020..0e44b20 100755 --- a/test/fast/Unit tests/nvm_ls_current +++ b/test/fast/Unit tests/nvm_ls_current @@ -21,6 +21,7 @@ rm -rf "$TEST_DIR" mkdir "$TEST_DIR" ln -s "$(command which which)" "$TEST_DIR/which" ln -s "$(command which dirname)" "$TEST_DIR/dirname" +ln -s "$(command which printf)" "$TEST_DIR/printf" [ "$(PATH="$TEST_DIR" nvm_ls_current)" = "none" ] || die 'when node not installed, nvm_ls_current did not return "none"' [ "@$(PATH="$TEST_DIR" nvm_ls_current 2> /dev/stdout 1> /dev/null)@" = "@@" ] || die 'when node not installed, nvm_ls_current returned error output'