VirtualBox

Ignore:
Timestamp:
Jun 9, 2020 10:44:01 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl.py: Made long arguments testing more readable by only using a-z (random) values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r84730 r84734  
    3434import os
    3535import random
     36import string
    3637import struct
    3738import sys
     
    29822983                # Append a random number of arguments with random length.
    29832984                for _ in xrange(0, self.oTestFiles.oRandom.randrange(1, 16)):
    2984                     asArgs.append(self.oTestFiles.generateFilenameEx((16 * 1024) - len(str(sEndMarker)), 1));
     2985                    asArgs.append(''.join(random.choice(string.lowercase)
     2986                                          for _ in range(self.oTestFiles.oRandom.randrange(1, 16 * 1024))));
    29852987
    29862988                asArgs.append(sEndMarker);
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