Changeset 263557 in webkit


Ignore:
Timestamp:
Jun 26, 2020 7:44:38 AM (4 years ago)
Author:
clopez@igalia.com
Message:

generate-jsc-bundle should fail if passed an invalid remote-config-file parameter
https://bugs.webkit.org/show_bug.cgi?id=213615

Reviewed by Žan Doberšek.

Raise an exception if the parameter passed as remote-config-file is not a file.

  • Scripts/generate-jsc-bundle:

(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r263555 r263557  
     12020-06-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        generate-jsc-bundle should fail if passed an invalid remote-config-file parameter
     4        https://bugs.webkit.org/show_bug.cgi?id=213615
     5
     6        Reviewed by Žan Doberšek.
     7
     8        Raise an exception if the parameter passed as remote-config-file is not a file.
     9
     10        * Scripts/generate-jsc-bundle:
     11        (main):
     12
    1132020-06-26  Takashi Komori  <takashi.komori@sony.com>
    214
  • trunk/Tools/Scripts/generate-jsc-bundle

    r233362 r263557  
    240240    bundleFilePath = createJSCBundle(configuration, options.revision, options.buildername, platform)
    241241    print('Bundle file created at: %s' % bundleFilePath)
    242     if options.remoteConfigFile is not None and os.path.isfile(options.remoteConfigFile):
     242    if options.remoteConfigFile is not None:
     243        if not os.path.isfile(options.remoteConfigFile):
     244            raise ValueError("Can't find remote config file for upload at path %s" % options.remoteConfigFile)
    243245        return uploadJSCBundle(bundleFilePath, options.remoteConfigFile, options.configuration, options.revision)
    244246    return 0
Note: See TracChangeset for help on using the changeset viewer.