We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a37320 commit 1e354feCopy full SHA for 1e354fe
sharness/lib/test-lib.sh
@@ -89,8 +89,12 @@ GUEST_RANDOM_FILES="sharness/bin/random-files"
89
test_install_version() {
90
VERSION="$1"
91
92
+ # We have to change the PATH as ipfs-update might call fs-repo-migrations
93
test_expect_success "'ipfs-update install' works for $VERSION" '
- exec_docker "$DOCID" "PATH=sharness/bin:$PATH; $GUEST_IPFS_UPDATE --verbose install $VERSION" >actual 2>&1 ||
94
+ DOCPWD=$(exec_docker "$DOCID" "pwd") &&
95
+ DOCPATH=$(exec_docker "$DOCID" "echo \$PATH") &&
96
+ NEWPATH="$DOCPWD/sharness/bin:$DOCPATH" &&
97
+ exec_docker "$DOCID" "export PATH=\"$NEWPATH\" && $GUEST_IPFS_UPDATE --verbose install $VERSION" >actual 2>&1 ||
98
test_fsh cat actual
99
'
100
0 commit comments