From 44be3e8b9215e2dda303806543775ab93904c40c Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Thu, 21 Aug 2025 16:19:37 +0700 Subject: [PATCH] feat: update args migration test case --- .github/workflows/autoqa-migration.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/autoqa-migration.yml b/.github/workflows/autoqa-migration.yml index 86a6a40ca..1fef401e9 100644 --- a/.github/workflows/autoqa-migration.yml +++ b/.github/workflows/autoqa-migration.yml @@ -110,9 +110,11 @@ jobs: RP_PROJECT: 'default_personal' run: | $case = "${{ inputs.migration_test_case }}" - $caseArg = "" - 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 }} $caseArg + if ($case -and $case.Trim() -ne "") { + 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 + } 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 if: always() @@ -219,9 +221,11 @@ jobs: working-directory: autoqa run: | case="${{ inputs.migration_test_case }}" - caseArg="" - 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 }} ${caseArg} + if [ -n "${case}" ]; then + 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}" + 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 if: always() @@ -302,9 +306,11 @@ jobs: working-directory: autoqa run: | case="${{ inputs.migration_test_case }}" - caseArg="" - 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 }} ${caseArg} + if [ -n "${case}" ]; then + python main.py --enable-migration-test --old-version "${OLD_VERSION}" --new-version "${NEW_VERSION}" --max-turns ${{ inputs.max_turns }} --migration-test-case "${case}" + 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 if: always()