Lines Matching refs:boolRes

46 def boolRes(rc, fExpect = True):
114 print '%s: UUID = %s' % (boolRes(True), sUuid);
116 print '%s: UUID' % (boolRes(False),);
120 print '%s: MKDIR(${SCRATCH}/testdir1) -> %s' % (boolRes(rc), rc);
123 print '%s: ISDIR(${SCRATCH}/testdir1) -> %s' % (boolRes(rc), rc);
126 print '%s: RMDIR(${SCRATCH}/testdir1) -> %s' % (boolRes(rc), rc);
130 print '%s: MKDRPATH(${SCRATCH}/testdir2/subdir1) -> %s' % (boolRes(rc), rc);
133 print '%s: ISDIR(${SCRATCH}/testdir2) -> %s' % (boolRes(rc), rc);
135 print '%s: ISDIR(${SCRATCH}/testdir2/) -> %s' % (boolRes(rc), rc);
137 print '%s: ISDIR(${SCRATCH}/testdir2/subdir1) -> %s' % (boolRes(rc), rc);
140 print '%s: RMTREE(${SCRATCH}/testdir2) -> %s' % (boolRes(rc), rc);
144 print '%s: PUT FILE(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc), rc);
147 print '%s: PUT FILE(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc), rc);
153 print '%s: ISFILE(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc), rc);
155 print '%s: ISDIR(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc, False), rc);
157 print '%s: ISSYMLNK(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc, False), rc);
160 print '%s: RMFILE(${SCRATCH}/howdyfile) -> %s' % (boolRes(rc), rc);
164 print (u'%s: PUT FILE(${SCRATCH}/Schröder) -> %s' % (boolRes(rc), rc)).encode('ascii', 'replace');
167 print (u'%s: ISFILE(${SCRATCH}/Schröder) -> %s' % (boolRes(rc), rc)).encode('ascii', 'replace');
170 print (u'%s: RMFILE(${SCRATCH}/Schröder) -> %s' % (boolRes(rc), rc)).encode('ascii', 'replace');
189 print('%s: creating file (%s) to upload failed....' % (boolRes(rc), strUpFile));
193 print('%s: PUT FILE(%s, ${SCRATCH}/tst-txsclient-uploaded.bin) -> %s' % (boolRes(rc), strUpFile, rc));
197 % (boolRes(rc), rc));
204 print '%s: downloaded file matches the uploaded file' % (boolRes(True),);
206 print '%s: downloaded file does not match the uploaded file' % (boolRes(False),);
210 print '%s: reading downloaded file (%s) failed....' % (boolRes(False), strDwnFile);
213 print '%s: RMFILE(${SCRATCH}/tst-txsclient-uploaded.bin) -> %s' % (boolRes(rc), rc);
227 print '%s: EXEC(%s ${SCRATCH}) -> %s' % (boolRes(rc), sProg, rc);
233 % (boolRes(rc, False), sProg, rc));
242 print '%s: EXEC(%s --version) -> %s' % (boolRes(rc), sProg, rc);
246 print '%s: EXEC(%s --help) -> %s' % (boolRes(rc), sProg, rc);
250 #print '%s: EXEC(/bin/sleep 30) -> %s' % (boolRes(rc), rc);
263 print '%s: EXEC(%s ${SCRATCH}) -> %s' % (boolRes(rc), sProg, rc);
267 print '%s: disconnect() -> %s' % (boolRes(rc), rc);
272 print '%s: REBOOT() -> %s' % (boolRes(rc), rc);