generator-plugin-wp icon indicating copy to clipboard operation
generator-plugin-wp copied to clipboard

input request from install-wp-tests.sh hangs dockunit

Open javaongsan opened this issue 8 years ago • 2 comments

+echo 'Hey, this is going to create a databse or stomp out '"$DB_NAME"' if it exists, continue? [y/n]'
 +read -r GO_ON
 +
 +if [[ 'y' != "$GO_ON" ]]; then
 +	echo 'See ya! http://bit.ly/2sxOB0u'
 +	exit;
 +fi

This part of the code hangs the dock container if you use dockunit.

javaongsan avatar Aug 13 '17 11:08 javaongsan

I'm not familiar very familiar with dockunit but a quick search got me up to speed. My assumption is that the prompt is problematic as it's spinning up environ and running tests.

Would simply adding a "yes" flag or something of the sort fix this?

binarygary avatar Aug 14 '17 13:08 binarygary

It basically stops and waits for the input so a "yes" flag should solve it.

javaongsan avatar Aug 14 '17 13:08 javaongsan