feat: update args migration test case
This commit is contained in:
parent
4159d11fd4
commit
44be3e8b92
24
.github/workflows/autoqa-migration.yml
vendored
24
.github/workflows/autoqa-migration.yml
vendored
@ -110,9 +110,11 @@ jobs:
|
|||||||
RP_PROJECT: 'default_personal'
|
RP_PROJECT: 'default_personal'
|
||||||
run: |
|
run: |
|
||||||
$case = "${{ inputs.migration_test_case }}"
|
$case = "${{ inputs.migration_test_case }}"
|
||||||
$caseArg = ""
|
if ($case -and $case.Trim() -ne "") {
|
||||||
if ($case -and $case.Trim() -ne "") { $caseArg = "--migration-test-case `"$case`"" }
|
python main.py --enable-migration-test --old-version "$env:OLD_VERSION" --new-version "$env:NEW_VERSION" --max-turns ${{ inputs.max_turns }} --migration-test-case $case
|
||||||
python main.py --enable-migration-test --old-version "$env:OLD_VERSION" --new-version "$env:NEW_VERSION" --max-turns ${{ inputs.max_turns }} $caseArg
|
} else {
|
||||||
|
python main.py --enable-migration-test --old-version "$env:OLD_VERSION" --new-version "$env:NEW_VERSION" --max-turns ${{ inputs.max_turns }}
|
||||||
|
}
|
||||||
|
|
||||||
- name: Upload screen recordings
|
- name: Upload screen recordings
|
||||||
if: always()
|
if: always()
|
||||||
@ -219,9 +221,11 @@ jobs:
|
|||||||
working-directory: autoqa
|
working-directory: autoqa
|
||||||
run: |
|
run: |
|
||||||
case="${{ inputs.migration_test_case }}"
|
case="${{ inputs.migration_test_case }}"
|
||||||
caseArg=""
|
if [ -n "${case}" ]; then
|
||||||
if [ -n "${case}" ]; then caseArg="--migration-test-case \"${case}\""; fi
|
xvfb-run -a python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }} --migration-test-case "${case}"
|
||||||
xvfb-run -a python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }} ${caseArg}
|
else
|
||||||
|
xvfb-run -a python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload screen recordings
|
- name: Upload screen recordings
|
||||||
if: always()
|
if: always()
|
||||||
@ -302,9 +306,11 @@ jobs:
|
|||||||
working-directory: autoqa
|
working-directory: autoqa
|
||||||
run: |
|
run: |
|
||||||
case="${{ inputs.migration_test_case }}"
|
case="${{ inputs.migration_test_case }}"
|
||||||
caseArg=""
|
if [ -n "${case}" ]; then
|
||||||
if [ -n "${case}" ]; then caseArg="--migration-test-case \"${case}\""; fi
|
python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }} --migration-test-case "${case}"
|
||||||
python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }} ${caseArg}
|
else
|
||||||
|
python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Upload screen recordings
|
- name: Upload screen recordings
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user