Skip to content

Commit dc7e5e6

Browse files
committed
Rename integration test environment variables. (#577)
`METAFIX_` -> `METAFACTURE_INTEGRATION_TEST_`
1 parent f180907 commit dc7e5e6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Build with Gradle
1515
run: ./gradlew check
1616
env:
17-
METAFIX_LOG_PASSED: true
17+
METAFACTURE_INTEGRATION_TEST_LOG_PASSED: true
1818
- name: Install language server
1919
run: ./gradlew installServer
2020
- name: Install fix extension

metafix/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ task integrationTest(type: Exec, group: 'Verification') {
9595
}
9696

9797
if (project.hasProperty('profile')) {
98-
environment.METAFIX_INTEGRATION_TEST_PROFILE = project.getProperty('profile')
98+
environment.METAFACTURE_INTEGRATION_TEST_PROFILE = project.getProperty('profile')
9999
}
100100

101-
environment.METAFIX_DISABLE_TO_DO = System.getProperty('org.metafacture.metafix.disableToDo')
102-
environment.METAFIX_KEEP_TEMP = System.getProperty('org.metafacture.metafix.keepTemp')
101+
environment.METAFACTURE_INTEGRATION_TEST_DISABLE_TO_DO = System.getProperty('org.metafacture.metafix.disableToDo')
102+
environment.METAFACTURE_INTEGRATION_TEST_KEEP_TEMP = System.getProperty('org.metafacture.metafix.keepTemp')
103103
}
104104

105105
task validateFixFile(type: JavaExec, group: 'Verification') {

metafix/integrationTest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function parse_boolean() {
2525
[ "${1,,}" == true ]
2626
}
2727

28-
parse_boolean "$METAFIX_DISABLE_TO_DO" && disable_todo=1 || disable_todo=
29-
parse_boolean "$METAFIX_INTEGRATION_TEST_PROFILE" && noprofile= || noprofile=no
30-
parse_boolean "$METAFIX_KEEP_TEMP" && keep_temp=1 || keep_temp=
28+
parse_boolean "$METAFACTURE_INTEGRATION_TEST_DISABLE_TO_DO" && disable_todo=1 || disable_todo=
29+
parse_boolean "$METAFACTURE_INTEGRATION_TEST_KEEP_TEMP" && keep_temp=1 || keep_temp=
30+
parse_boolean "$METAFACTURE_INTEGRATION_TEST_PROFILE" && noprofile= || noprofile=no
3131
parse_boolean "$CI" && ci=1 || ci=
3232

3333
[ -t 1 -a -x /usr/bin/colordiff ] && colordiff=colordiff || colordiff=cat
@@ -166,7 +166,7 @@ function test_passed() {
166166

167167
((failed++)) || true
168168
else
169-
if parse_boolean "$METAFIX_LOG_PASSED"; then
169+
if parse_boolean "$METAFACTURE_INTEGRATION_TEST_LOG_PASSED"; then
170170
log "$color_test$1$color_reset: ${color_passed}PASSED$color_reset$3"
171171
fi
172172

0 commit comments

Comments
 (0)