Index: /trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py
===================================================================
--- /trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py	(revision 87230)
+++ /trunk/src/VBox/ValidationKit/tests/autostart/tdAutostart1.py	(revision 87231)
@@ -102,30 +102,8 @@
         self.fPae = fPae;
         self.sGuestAdditionsIso = sGuestAdditionsIso;
-        self._asTestBuildDirs = oTstDrv.asTestBuildDirs;
-        self._sTestBuild = None;
-        self._sVBoxInstaller = "";
+        self.asTestBuildDirs = oTstDrv.asTestBuildDirs;
+        self.sVBoxInstaller = "";
         self.asVirtModesSup = ['hwvirt-np',];
         self.asParavirtModesSup = ['default',];
-
-    @property
-    def asTestBuildDirs(self):
-        return self._asTestBuildDirs;
-
-    @asTestBuildDirs.setter
-    def asTestBuildDirs(self, value):
-        self._asTestBuildDirs = value;
-        self.sTestBuild = self._findFile(self._sVBoxInstaller, value);
-        if not self.sTestBuild:
-            raise base.GenError("VirtualBox install package not found");
-
-    @property
-    def sTestBuild(self):
-        return self._sTestBuild;
-
-    @sTestBuild.setter
-    def sTestBuild(self, value):
-        if not os.path.exists(value):
-            raise base.GenError("The %s does not exist" % (value,));
-        self._sTestBuild = value;
 
     def _findFile(self, sRegExp, asTestBuildDirs):
@@ -674,5 +652,6 @@
         tdAutostartOs.__init__(self, oSet, oTstDrv, sVmName, sKind, sHdd, eNic0Type, cMbRam, \
                                cCpus, fPae, sGuestAdditionsIso);
-        self._sVBoxInstaller = '^VirtualBox-.*\\.run$';
+        try:    self.sVBoxInstaller = '^VirtualBox-.*\\.run$';
+        except: pass;
         return;
 
@@ -757,10 +736,14 @@
         Install VirtualBox in the guest.
         """
-        if self.sTestBuild is None:
-            return False;
         reporter.testStart('Install Virtualbox into the guest VM');
-        reporter.log("Virtualbox install file: %s" % os.path.basename(self.sTestBuild));
-        fRc = self.uploadFile(oGuestSession, self.sTestBuild,
-                              '/tmp/' + os.path.basename(self.sTestBuild));
+        sTestBuild = self._findFile(self.sVBoxInstaller, self.asTestBuildDirs);
+        reporter.log("Virtualbox install file: %s" % os.path.basename(sTestBuild));
+        fRc = sTestBuild is not None;
+        if fRc:
+            fRc = self.uploadFile(oGuestSession, sTestBuild,
+                                  '/tmp/' + os.path.basename(sTestBuild));
+        else:
+            reporter.error("VirtualBox install package is not defined");
+
         if not fRc:
             reporter.error('Upload the vbox installer into guest VM failed');
@@ -770,5 +753,5 @@
                                                       30 * 1000, '/usr/bin/sudo',
                                                       ['/usr/bin/sudo', '/bin/chmod', '755',
-                                                       '/tmp/' + os.path.basename(self.sTestBuild)],
+                                                       '/tmp/' + os.path.basename(sTestBuild)],
                                                       False, True);
             if not fRc:
@@ -778,5 +761,5 @@
                                                       240 * 1000, '/usr/bin/sudo',
                                                       ['/usr/bin/sudo',
-                                                       '/tmp/' + os.path.basename(self.sTestBuild),],
+                                                       '/tmp/' + os.path.basename(sTestBuild),],
                                                       False, True);
             if not fRc:
@@ -947,5 +930,6 @@
         tdAutostartOs.__init__(self, oSet, oTstDrv, sVmName, sKind, sHdd, eNic0Type, cMbRam, \
                                cCpus, fPae, sGuestAdditionsIso);
-        self._sVBoxInstaller = '^VirtualBox-.*\\.(exe|msi)$';
+        try:    self.sVBoxInstaller = '^VirtualBox-.*\\.(exe|msi)$';
+        except: pass;
         return;
 
@@ -1071,20 +1055,24 @@
         Install VirtualBox in the guest.
         """
-        if self.sTestBuild is None:
-            return False;
         reporter.testStart('Install Virtualbox into the guest VM');
-        reporter.log("Virtualbox install file: %s" % os.path.basename(self.sTestBuild));
         # Used windows image already contains the C:\Temp
-        fRc = self.uploadFile(oGuestSession, self.sTestBuild,
-                              'C:\\Temp\\' + os.path.basename(self.sTestBuild));
+        sTestBuild = self._findFile(self.sVBoxInstaller, self.asTestBuildDirs);
+        reporter.log("Virtualbox install file: %s" % os.path.basename(sTestBuild));
+        fRc = sTestBuild is not None;
+        if fRc:
+            fRc = self.uploadFile(oGuestSession, sTestBuild,
+                              'C:\\Temp\\' + os.path.basename(sTestBuild));
+        else:
+            reporter.error("VirtualBox install package is not defined");
+
         if not fRc:
             reporter.error('Upload the installing into guest VM failed');
         else:
-            if self.sTestBuild.endswith('.msi'):
+            if sTestBuild.endswith('.msi'):
                 sLogFile = 'C:/Temp/VBoxInstallLog.txt';
                 (fRc, _, _, _) = self.guestProcessExecute(oGuestSession, 'Installing VBox',
                                                         600 * 1000, 'C:\\Windows\\System32\\msiexec.exe',
                                                         ['msiexec', '/quiet', '/norestart', '/i',
-                                                         'C:\\Temp\\' + os.path.basename(self.sTestBuild),
+                                                         'C:\\Temp\\' + os.path.basename(sTestBuild),
                                                         '/lv', sLogFile],
                                                         False, True);
@@ -1094,6 +1082,6 @@
                 sLogFile = 'C:/Temp/Virtualbox/VBoxInstallLog.txt';
                 (fRc, _, _, _) = self.guestProcessExecute(oGuestSession, 'Installing VBox',
-                                                        600 * 1000, 'C:\\Temp\\' + os.path.basename(self.sTestBuild),
-                                                        ['C:\\Temp\\' + os.path.basename(self.sTestBuild), '-vvvv',
+                                                        600 * 1000, 'C:\\Temp\\' + os.path.basename(sTestBuild),
+                                                        ['C:\\Temp\\' + os.path.basename(sTestBuild), '-vvvv',
                                                          '--silent', '--logging',
                                                          '--msiparams', 'REBOOT=ReallySuppress'],
@@ -1304,5 +1292,5 @@
         ## @todo r=bird: The --test-build-dirs option as primary way to get the installation files to test
         ## is not an acceptable test practice as we don't know wtf you're testing.  See defect for more.
-        self.asTestBuildDirs    = os.path.join(self.sScratchPath, 'bin');
+        self.asTestBuildDirs    = [os.path.join(self.sScratchPath, 'bin'),];
         self.sGuestAdditionsIso = None; #'D:/AlexD/TestBox/TestAdditionalFiles/VBoxGuestAdditions_6.1.2.iso';
         oSet = vboxtestvms.TestVmSet(self.oTestVmManager, acCpus = [2], asVirtModes = ['hwvirt-np',], fIgnoreSkippedVm = True);
