VirtualBox

Changeset 84323 in vbox


Ignore:
Timestamp:
May 15, 2020 6:22:55 PM (5 years ago)
Author:
vboxsync
Message:

Main: bugref:9341: Fixed pylint issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py

    r84322 r84323  
    190190                           if oRegExp.match(os.path.basename(s))
    191191                           and os.path.exists(sTestBuildDir + '/' + s));
    192                 asFiles = sorted(asFiles, reverse = True, key = lambda s: os.path.getmtime(os.path.join(sTestBuildDir, s)));
     192                asFiles = sorted(asFiles, reverse = True,
     193                                 key = lambda s, sTstBuildDir = sTestBuildDir: os.path.getmtime(os.path.join(sTstBuildDir, s)));
    193194                if asFiles:
    194195                    return sTestBuildDir + '/' + asFiles[0];
     
    196197                pass;
    197198
    198         reporter.error('Failed to find a file matching "%s" in %s.' % (sRegExp, sTestBuildDir));
     199        reporter.error('Failed to find a file matching "%s" in %s.' % (sRegExp, ','.join(asTestBuildDirs)));
    199200        return None;
    200201
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette