VirtualBox

Ignore:
Timestamp:
Jun 25, 2020 12:15:56 PM (4 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddBasic1.py: Removed temporary HACK ALERT stuff again.

File:
1 edited

Legend:

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

    r84929 r84948  
    175175        the actual test result.
    176176        """
    177         # HACK ALERT! HORRIBLE MESS THAT SHOULDN'T BE HERE!
    178         aasLogFiles = [ ];
    179         if oTestVm.isLinux():
    180             reporter.testStart('Enabling udev logging ...');
    181             oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = False);
    182             reporter.testDone();
    183             if oTxsSession:
    184                 oTxsSession.syncExec("sed", ("sed", "-i", "'s/.*udev_log.*/udev_log=\"debug\"/'", "/etc/udev/udev.conf"),
    185                                      fIgnoreErrors = True);
    186 
    187                 sUDevMonitorLog = '/tmp/udev_monitor.log';
    188                 aasLogFiles.append((sUDevMonitorLog, 'guest-udev_monitor-%s.log' % (oTestVm.sVmName,),));
    189 
    190                 reporter.testStart('Enabling udev monitoring ...');
    191                 sUdevSvc = StringIO();
    192                 sUdevSvc.write('[Unit]\n');
    193                 sUdevSvc.write('Description=udev Monitoring\n');
    194                 sUdevSvc.write('DefaultDependencies=no\n');
    195                 sUdevSvc.write('Wants=systemd-udevd.service\n');
    196                 sUdevSvc.write('After=systemd-udevd-control.socket systemd-udevd-kernel.socket\n');
    197                 sUdevSvc.write('Before=sysinit.target systemd-udev-trigger.service\n');
    198                 sUdevSvc.write('[Service]\n');
    199                 sUdevSvc.write('Type=simple\n');
    200                 sUdevSvc.write('ExecStart=/usr/bin/sh -c "/usr/sbin/udevadm monitor --udev --env > ' + sUDevMonitorLog + '\n');
    201                 sUdevSvc.write('[Install]\n');
    202                 sUdevSvc.write('WantedBy=sysinit.target');
    203                 oTxsSession.syncUploadString(sUdevSvc.getvalue(), '/etc/systemd/system/systemd-udev-monitor.service', 0o644,
    204                                              fIgnoreErrors = True);
    205                 oTxsSession.syncExec("systemctl", ("systemctl", "enable", "systemd-udev-monitor.service"), fIgnoreErrors = True);
    206                 reporter.testDone();
    207         # HACK ALERT - END.
    208 
    209177        fRc = False;
    210178
     
    228196                                                                      sFileCdWait = self.sFileCdWait);
    229197        reporter.testDone();
    230 
    231         # More HACK ALERT stuff.
    232         if aasLogFiles and oTxsSession:
    233             self.txsDownloadFiles(oSession, oTxsSession, aasLogFiles, fIgnoreErrors = True);
    234198
    235199        if oSession is not None:
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