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

Generate infection.json (without .dist postfix) by default #1554

Merged
merged 2 commits into from Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Command/ConfigureCommand.php
Expand Up @@ -216,7 +216,7 @@ private function saveConfig(
];

file_put_contents(
SchemaConfigurationLoader::DEFAULT_DIST_CONFIG_FILE,
SchemaConfigurationLoader::DEFAULT_CONFIG_FILE,
json_encode($configObject, JSON_PRETTY_PRINT)
);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/Configure/run_tests.bash
Expand Up @@ -7,7 +7,7 @@ if test ! -f "$(which expect)"; then
fi

cd $(dirname $0)
rm -f infection.json.dist
rm -f infection.json

set -e

Expand All @@ -25,5 +25,5 @@ unset GITHUB_ACTIONS

./do_configure.expect

test -f infection.json.dist
diff -u infection.json.test infection.json.dist
test -f infection.json
diff -u infection.json.test infection.json
4 changes: 2 additions & 2 deletions tests/e2e/Initial_Configuration/run_tests.bash
Expand Up @@ -7,7 +7,7 @@ if test ! -f "$(which expect)"; then
fi

cd $(dirname $0)
rm -v -f infection.json.dist infection.log
rm -v -f infection.json infection.log

set -e

Expand All @@ -27,4 +27,4 @@ unset GITHUB_ACTIONS

trap 'echo Final check failed: $(tail -n+$LINENO $0 | head -n1)' ERR

test -f infection.json.dist
test -f infection.json