Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from legal90/custom-share-path
Allow shared folder path customization
- Loading branch information
Showing
4 changed files
with
94 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bats | ||
|
||
load ${BASE_TEST_DIR}/helpers.bash | ||
|
||
use_disposable_machine | ||
|
||
@test "$DRIVER: create with custom shared folders" { | ||
run machine create -d $DRIVER --parallels-share-folder ~/Documents --parallels-share-folder /Library/Application\ Support $NAME | ||
} | ||
|
||
@test "$DRIVER: shared folder with a tilda (~) is mounted properly" { | ||
run machine ssh $NAME -- "mount -t prl_fs | awk -F ' on | type ' '{ print \$2 }'" | ||
echo ${output} | ||
[ "$status" -eq 0 ] | ||
[[ ${output} == *"/Users"*"/Documents"* ]] | ||
} | ||
|
||
@test "$DRIVER: shared folder with a space is mounted properly" { | ||
run machine ssh $NAME -- "mount -t prl_fs | awk -F ' on | type ' '{ print \$2 }'" | ||
echo ${output} | ||
[ "$status" -eq 0 ] | ||
[[ ${output} == *"/Library/Application Support"* ]] | ||
} |