Automattic / Automattic/o2

Error install-wp-tests.sh

Open
#212 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
338
Forks
56
Avg merge
24m
Merged PRs (30d)
16

Description

I am running the script from Cygwin and I get the following error

`bash bin/install-wp-tests.sh wordpress_test root 'my_pass' localhost latest`

`sed: -e expression #1, char 36: unknown option to s'`

This is the line where the error occurs and the execution ends

`sed $ioption "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR/':" "$WP_TESTS_DIR"/wp-tests-config.php`

Why does this error occur?

regards

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with bin/install-wp-tests.sh and the sed command that edits wp-tests-config.php, then reproduce the command under Cygwin while checking the values passed to sed. Compare the script's expected environment with Cygwin's behavior; done means the script completes and produces a usable wp-tests-config.php.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, wordpress
Domain
testing, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.