⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277444 in webkit


Ignore:
Timestamp:
May 13, 2021, 12:23:58 PM (5 years ago)
Author:
Jonathan Bedard
Message:

[run-api-tests] Use Python 3 (Part 1)
https://bugs.webkit.org/show_bug.cgi?id=225427
<rdar://problem/77584713>

Reviewed by Aakash Jain.

  • CISupport/build-webkit-org/steps.py:

(RunAPITests): Use Python3 to invoke run-api-tests.

  • CISupport/ews-build/steps.py:

(RunAPITests): Use Python3 to invoke run-api-tests.

  • CISupport/ews-build/steps_unittest.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/build-webkit-org/steps.py

    r277395 r277444  
    645645    logfiles = {"json": jsonFileName}
    646646    command = [
    647         "python",
     647        "python3",
    648648        "./Tools/Scripts/run-api-tests",
    649649        "--no-build",
  • trunk/Tools/CISupport/ews-build/steps.py

    r276868 r277444  
    27662766    jsonFileName = 'api_test_results.json'
    27672767    logfiles = {'json': jsonFileName}
    2768     command = ['python', 'Tools/Scripts/run-api-tests', '--no-build',
     2768    command = ['python3', 'Tools/Scripts/run-api-tests', '--no-build',
    27692769               WithProperties('--%(configuration)s'), '--verbose', '--json-output={0}'.format(jsonFileName)]
    27702770    failedTestsFormatString = '%d api test%s failed or timed out'
  • trunk/Tools/CISupport/ews-build/steps_unittest.py

    r276438 r277444  
    31823182            ExpectShell(workdir='wkdir',
    31833183                        logEnviron=False,
    3184                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--release', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
     3184                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--release', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
    31853185                        logfiles={'json': self.jsonFileName},
    31863186                        )
     
    32103210            ExpectShell(workdir='wkdir',
    32113211                        logEnviron=False,
    3212                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName), '--ios-simulator'],
     3212                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName), '--ios-simulator'],
    32133213                        logfiles={'json': self.jsonFileName},
    32143214                        )
     
    32713271            ExpectShell(workdir='wkdir',
    32723272                        logEnviron=False,
    3273                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
     3273                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
    32743274                        logfiles={'json': self.jsonFileName},
    32753275                        )
     
    33133313            ExpectShell(workdir='wkdir',
    33143314                        logEnviron=False,
    3315                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
     3315                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
    33163316                        logfiles={'json': self.jsonFileName},
    33173317                        )
     
    33693369            ExpectShell(workdir='wkdir',
    33703370                        logEnviron=False,
    3371                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
     3371                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
    33723372                        logfiles={'json': self.jsonFileName},
    33733373                        )
     
    33873387            ExpectShell(workdir='wkdir',
    33883388                        logEnviron=False,
    3389                         command=['python', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
     3389                        command=['python3', 'Tools/Scripts/run-api-tests', '--no-build', '--debug', '--verbose', '--json-output={0}'.format(self.jsonFileName)],
    33903390                        logfiles={'json': self.jsonFileName},
    33913391                        )
     
    34293429            ExpectShell(workdir='wkdir',
    34303430                        logEnviron=False,
    3431                         command=['python',
     3431                        command=['python3',
    34323432                                 'Tools/Scripts/run-api-tests',
    34333433                                 '--no-build',
     
    34653465            ExpectShell(workdir='wkdir',
    34663466                        logEnviron=False,
    3467                         command=['python',
     3467                        command=['python3',
    34683468                                 'Tools/Scripts/run-api-tests',
    34693469                                 '--no-build',
  • trunk/Tools/ChangeLog

    r277440 r277444  
     12021-05-13  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [run-api-tests] Use Python 3 (Part 1)
     4        https://bugs.webkit.org/show_bug.cgi?id=225427
     5        <rdar://problem/77584713>
     6
     7        Reviewed by Aakash Jain.
     8
     9        * CISupport/build-webkit-org/steps.py:
     10        (RunAPITests): Use Python3 to invoke run-api-tests.
     11        * CISupport/ews-build/steps.py:
     12        (RunAPITests): Use Python3 to invoke run-api-tests.
     13        * CISupport/ews-build/steps_unittest.py:
     14
    1152021-05-13  Jonathan Bedard  <jbedard@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.