VirtualBox

Ignore:
Timestamp:
May 15, 2020 7:55:00 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137988
Message:

Validation Kit/testdriver: More diagnosis for txsCdWait().

File:
1 edited

Legend:

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

    r84313 r84316  
    35643564            # Do some diagnosis to find out why this failed.
    35653565            ## @todo Identify guest OS type and only run one of the following commands.
     3566            fIsNotWindows = True;
    35663567            reporter.log('txsCdWait: Listing root contents of ${CDROM}:');
    3567             oTxsSession.syncExec("/bin/ls", ("/bin/ls", "-al", "${CDROM}"), fIgnoreErrors = True);
    3568             # ASSUMES that we always install Windows on drive C right now.
    3569             sWinDir = "C:\\Windows\\System32\\";
    3570             oTxsSession.syncExec(sWinDir + " cmd.exe",
    3571                                  ('cmd.exe', '/C', 'dir', '${CDROM}'),
    3572                                  fIgnoreErrors = True);
    3573             oTxsSession.syncExec('C:\\WINNT\\System32\\cmd.exe',
    3574                                  ('C:\\WINNT\\System32\\cmd.exe', '/C', 'dir', '${CDROM}'),
    3575                                  fIgnoreErrors = True);
    3576 
    3577             reporter.log('txsCdWait: Listing media directory:');
    3578             oTxsSession.syncExec('/bin/ls', ('/bin/ls', '-l', '-a', '-R', '/media'), fIgnoreErrors = True);
    3579             reporter.log('txsCdWait: Listing mount points / drives:');
    3580             oTxsSession.syncExec('/bin/mount', ('/bin/mount',), fIgnoreErrors = True);
    3581             oTxsSession.syncExec('/bin/cat', ('/bin/cat', '/etc/fstab'), fIgnoreErrors = True);
    3582             # Should work since WinXP Pro.
    3583             oTxsSession.syncExec(sWinDir + "wbem\\WMIC.exe",
    3584                                  ("WMIC.exe", "logicaldisk", "get",
    3585                                   "deviceid, volumename, description"),
    3586                                  fIgnoreErrors = True);
     3568            if fIsNotWindows:
     3569                oTxsSession.syncExec("/bin/ls", ("/bin/ls", "-al", "${CDROM}"), fIgnoreErrors = True);
     3570                reporter.log('txsCdWait: Listing media directory:');
     3571                oTxsSession.syncExec('/bin/ls', ('/bin/ls', '-l', '-a', '-R', '/media'), fIgnoreErrors = True);
     3572                reporter.log('txsCdWait: Listing mount points / drives:');
     3573                oTxsSession.syncExec('/bin/mount', ('/bin/mount',), fIgnoreErrors = True);
     3574                oTxsSession.syncExec('/bin/cat', ('/bin/cat', '/etc/fstab'), fIgnoreErrors = True);
     3575                oTxsSession.syncExec('/bin/dmesg', ('/bin/dmesg',), fIgnoreErrors = True);
     3576            else:
     3577                # ASSUMES that we always install Windows on drive C right now.
     3578                sWinDir = "C:\\Windows\\System32\\";
     3579                # Should work since WinXP Pro.
     3580                oTxsSession.syncExec(sWinDir + "wbem\\WMIC.exe",
     3581                                     ("WMIC.exe", "logicaldisk", "get",
     3582                                      "deviceid, volumename, description"),
     3583                                     fIgnoreErrors = True);
     3584                oTxsSession.syncExec(sWinDir + " cmd.exe",
     3585                                     ('cmd.exe', '/C', 'dir', '${CDROM}'),
     3586                                     fIgnoreErrors = True);
    35873587
    35883588        if fRemoveTxs:
Note: See TracChangeset for help on using the changeset viewer.

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