Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for content on STDIN is broken in Behat #194

Open
schlessera opened this issue Aug 5, 2018 · 0 comments
Open

Check for content on STDIN is broken in Behat #194

schlessera opened this issue Aug 5, 2018 · 0 comments

Comments

@schlessera
Copy link
Member

The check in WP_CLI\Entity\Utils\has_stdin() to see whether content is available from STDIN is currently breaking within the Behat environment.

Strangely enough, it seems to work outside of Behat.

This needs further examination.

Behat output (https://travis-ci.org/wp-cli/entity-command/jobs/412368071#L699-L706):

01. $ wp user import-csv -
    
    cwd: /tmp/wp-cli-test-run-user-import-csv.feature.142-5b673717041d62.79844176/
    run time: 0.28037309646606
    exit status: 0
    In step `Then STDERR should be:'.           # vendor/wp-cli/wp-cli-tests/features/steps/then.php:17
    From scenario `Importing users from STDIN'. # features/user-import-csv.feature:142
    Of feature `Import users from CSV'.         # features/user-import-csv.feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant