VirtualBox

Changeset 84112 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Apr 30, 2020 3:48:14 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/testdriver: Debug logging for txsCdWait() for smoketest issues; follow-up to r137697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r84108 r84112  
    35143514            sFile = 'valkit.txt';
    35153515
     3516        reporter.log('txsCdWait: Waiting for file "%s" to become available ...' % (sFile,));
     3517
    35163518        fRemoveVm   = self.addTask(oSession);
    35173519        fRemoveTxs  = self.addTask(oTxsSession);
     
    35223524        if fRc is True:
    35233525            while True:
    3524                 reporter.log('txsCdWait: Waiting for file "%s" to become available ...' % (sFile,));
    35253526                # wait for it to complete.
    35263527                oTask = self.waitForTasks(cMsTimeout2 + 1);
     
    35493550                self.sleep(1);
    35503551
    3551                 ## @todo Make this optional and identify guest OS type.
    3552                 reporter.log('txsCdWait: Listing root contents of ${CDROM}:');
    3553                 oTxsSession.syncExec("/bin/ls", ("/bin/ls", "-al", "${CDROM}"), fIgnoreErrors = True);
    3554                 # ASSUMES that we always install Windows on drive C right now.
    3555                 # Does not run on ancient stuff which uses WINNT as %WinDir%.
    3556                 oTxsSession.syncExec("C:\\Windows\\System32\\cmd.exe",
    3557                                      ("C:\\Windows\\System32\\cmd.exe", "/C", "dir", "${CDROM}"),
    3558                                      fIgnoreErrors = True);
    3559 
    3560                 # resubmitt the task.
     3552                # resubmit the task.
    35613553                cMsTimeout2 = msStart + cMsTimeout - base.timestampMilli();
    35623554                if cMsTimeout2 < 500:
     
    35683560        else:
    35693561            reporter.error('txsCdWait: asyncIsFile failed');
     3562
     3563        if not fRc:
     3564            ## @todo Identify guest OS type and only run one of the following commands.
     3565            reporter.log('txsCdWait: Listing root contents of ${CDROM}:');
     3566            oTxsSession.syncExec("/bin/ls", ("/bin/ls", "-al", "${CDROM}"), fIgnoreErrors = True);
     3567            # ASSUMES that we always install Windows on drive C right now.
     3568            oTxsSession.syncExec("C:\\Windows\\System32\\cmd.exe",
     3569                                 ("C:\\Windows\\System32\\cmd.exe", "/C", "dir", "${CDROM}"),
     3570                                 fIgnoreErrors = True);
     3571            oTxsSession.syncExec("C:\\WINNT\\System32\\cmd.exe",
     3572                                 ("C:\\WINNT\\System32\\cmd.exe", "/C", "dir", "${CDROM}"),
     3573                                 fIgnoreErrors = True);
    35703574
    35713575        if fRemoveTxs:
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