Changeset 61835 in vbox for trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
- Timestamp:
- Jun 22, 2016 9:27:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r57289 r61835 409 409 def __init__(self, aoSteps = None, enmUser = None): 410 410 tdTestGuestCtrlBase.__init__(self); 411 assert enmUser ==None; # For later.411 assert enmUser is None; # For later. 412 412 self.enmUser = enmUser; 413 413 self.aoSteps = aoSteps if aoSteps is not None else []; … … 420 420 # Create a session. 421 421 # 422 assert self.enmUser ==None; # For later.422 assert self.enmUser is None; # For later. 423 423 self.oCreds = tdCtxCreds(oTestVm = oTestVm); 424 424 self.setEnvironment(oVmSession, oTxsSession, oTestVm); … … 965 965 reporter.testStart('Session Basics'); 966 966 fSkip = 'session_basic' not in self.asTests; 967 if fSkip ==False:967 if fSkip is False: 968 968 fRc, oTxsSession = self.testGuestCtrlSession(oSession, oTxsSession, oTestVm); 969 969 reporter.testDone(fSkip); … … 971 971 reporter.testStart('Session Environment'); 972 972 fSkip = 'session_env' not in self.asTests or fRc is False; 973 if fSkip ==False:973 if fSkip is False: 974 974 fRc, oTxsSession = self.testGuestCtrlSessionEnvironment(oSession, oTxsSession, oTestVm); 975 975 reporter.testDone(fSkip); … … 977 977 reporter.testStart('Session File References'); 978 978 fSkip = 'session_file_ref' not in self.asTests; 979 if fSkip ==False:979 if fSkip is False: 980 980 fRc, oTxsSession = self.testGuestCtrlSessionFileRefs(oSession, oTxsSession, oTestVm); 981 981 reporter.testDone(fSkip); … … 984 984 #reporter.testStart('Session Directory References'); 985 985 #fSkip = 'session_dir_ref' not in self.asTests; 986 #if fSkip ==False:986 #if fSkip is False: 987 987 # fRc, oTxsSession = self.testGuestCtrlSessionDirRefs(oSession, oTxsSession, oTestVm); 988 988 #reporter.testDone(fSkip); … … 990 990 reporter.testStart('Session Process References'); 991 991 fSkip = 'session_proc_ref' not in self.asTests or fRc is False; 992 if fSkip ==False:992 if fSkip is False: 993 993 fRc, oTxsSession = self.testGuestCtrlSessionProcRefs(oSession, oTxsSession, oTestVm); 994 994 reporter.testDone(fSkip); … … 996 996 reporter.testStart('Execution'); 997 997 fSkip = 'exec_basic' not in self.asTests or fRc is False; 998 if fSkip ==False:998 if fSkip is False: 999 999 fRc, oTxsSession = self.testGuestCtrlExec(oSession, oTxsSession, oTestVm); 1000 1000 reporter.testDone(fSkip); … … 1002 1002 reporter.testStart('Execution Error Levels'); 1003 1003 fSkip = 'exec_errorlevel' not in self.asTests or fRc is False; 1004 if fSkip ==False:1004 if fSkip is False: 1005 1005 fRc, oTxsSession = self.testGuestCtrlExecErrorLevel(oSession, oTxsSession, oTestVm); 1006 1006 reporter.testDone(fSkip); … … 1008 1008 reporter.testStart('Execution Timeouts'); 1009 1009 fSkip = 'exec_timeout' not in self.asTests or fRc is False; 1010 if fSkip ==False:1010 if fSkip is False: 1011 1011 fRc, oTxsSession = self.testGuestCtrlExecTimeout(oSession, oTxsSession, oTestVm); 1012 1012 reporter.testDone(fSkip); … … 1014 1014 reporter.testStart('Creating directories'); 1015 1015 fSkip = 'dir_create' not in self.asTests or fRc is False; 1016 if fSkip ==False:1016 if fSkip is False: 1017 1017 fRc, oTxsSession = self.testGuestCtrlDirCreate(oSession, oTxsSession, oTestVm); 1018 1018 reporter.testDone(fSkip); … … 1020 1020 reporter.testStart('Creating temporary directories'); 1021 1021 fSkip = 'dir_create_temp' not in self.asTests or fRc is False; 1022 if fSkip ==False:1022 if fSkip is False: 1023 1023 fRc, oTxsSession = self.testGuestCtrlDirCreateTemp(oSession, oTxsSession, oTestVm); 1024 1024 reporter.testDone(fSkip); … … 1026 1026 reporter.testStart('Reading directories'); 1027 1027 fSkip = 'dir_read' not in self.asTests or fRc is False; 1028 if fSkip ==False:1028 if fSkip is False: 1029 1029 fRc, oTxsSession = self.testGuestCtrlDirRead(oSession, oTxsSession, oTestVm); 1030 1030 reporter.testDone(fSkip); … … 1033 1033 # reporter.testStart('Copy to guest'); 1034 1034 # fSkip = 'copy_to' not in self.asTests or fRc is False; 1035 # if fSkip ==False:1035 # if fSkip is False: 1036 1036 # fRc, oTxsSession = self.testGuestCtrlCopyTo(oSession, oTxsSession, oTestVm); 1037 1037 # reporter.testDone(fSkip); … … 1039 1039 reporter.testStart('Copy from guest'); 1040 1040 fSkip = 'copy_from' not in self.asTests or fRc is False; 1041 if fSkip ==False:1041 if fSkip is False: 1042 1042 fRc, oTxsSession = self.testGuestCtrlCopyFrom(oSession, oTxsSession, oTestVm); 1043 1043 reporter.testDone(fSkip); … … 1045 1045 reporter.testStart('Removing files'); 1046 1046 fSkip = 'file_remove' not in self.asTests or fRc is False; 1047 if fSkip ==False:1047 if fSkip is False: 1048 1048 fRc, oTxsSession = self.testGuestCtrlFileRemove(oSession, oTxsSession, oTestVm); 1049 1049 reporter.testDone(fSkip); … … 1051 1051 reporter.testStart('Querying file information (stat)'); 1052 1052 fSkip = 'file_stat' not in self.asTests or fRc is False; 1053 if fSkip ==False:1053 if fSkip is False: 1054 1054 fRc, oTxsSession = self.testGuestCtrlFileStat(oSession, oTxsSession, oTestVm); 1055 1055 reporter.testDone(fSkip); … … 1058 1058 # reporter.testStart('File read'); 1059 1059 # fSkip = 'file_read' not in self.asTests or fRc is False; 1060 # if fSkip ==False:1060 # if fSkip is False: 1061 1061 # fRc, oTxsSession = self.testGuestCtrlFileRead(oSession, oTxsSession, oTestVm); 1062 1062 # reporter.testDone(fSkip); … … 1064 1064 # reporter.testStart('File write'); 1065 1065 # fSkip = 'file_write' not in self.asTests or fRc is False; 1066 # if fSkip ==False:1066 # if fSkip is False: 1067 1067 # fRc, oTxsSession = self.testGuestCtrlFileWrite(oSession, oTxsSession, oTestVm); 1068 1068 # reporter.testDone(fSkip); … … 1072 1072 # Skip test for updating Guest Additions if we run on a too old (Windows) guest. 1073 1073 fSkip = oTestVm.sKind in ('WindowsNT4', 'Windows2000', 'WindowsXP', 'Windows2003'); 1074 if fSkip ==False:1074 if fSkip is False: 1075 1075 fRc, oTxsSession = self.testGuestCtrlUpdateAdditions(oSession, oTxsSession, oTestVm); 1076 1076 reporter.testDone(fSkip);
Note:
See TracChangeset
for help on using the changeset viewer.