Lines Matching refs:output
127 self.assertTrue("Unexpected Exception" not in self.output)
136 retcode, output = self.pkg_verify("foo", su_wrap=True, out=True,
138 self.assertTrue("Traceback" not in output)
140 # Should not output anything when using -q.
142 assert(self.output == "")
147 self.assertTrue("foo" in self.output
148 and "etc/name_to_major" not in self.output)
150 self.assertTrue("OK" in self.output)
152 self.assertTrue(self.output.count("OK") == 1)
154 # Should output path not found.
156 self.assertTrue("not found" in self.output)
171 self.assertTrue("Unexpected Exception" not in self.output)
172 self.assertTrue("PACKAGE" in self.output and "STATUS" in self.output)
181 self.assertTrue("PACKAGE" in self.output
182 and self.output.count("ERROR") == 2)
183 self.assertTrue("usr/bin/bobcat" in self.output)
187 self.assertTrue("PACKAGE" not in self.output and
188 "STATUS" not in self.output)
190 # Should not output anything when using -q.
192 assert(self.output == "")
196 # Informational messages should not be output unless -v
235 self.assertTrue("4321" in self.output and "WARNING" in self.output)
239 self.assertTrue("4321" in self.output and "WARNING" in self.output)
243 self.assertTrue("4321" in self.output and "WARNING" in self.output)
262 self.assertTrue("ERROR" not in self.output
263 and self.output.count("OK") == 2)
265 self.assertTrue("ERROR" not in self.output
266 and self.output.count("OK") == 2)
268 self.assertTrue("ERROR" not in self.output
269 and self.output.count("OK") == 1)
271 self.assertTrue("ERROR" not in self.output
272 and self.output.count("OK") == 1)
278 self.assertTrue("ERROR" not in self.output
279 and self.output.count("OK") == 1)
280 self.assertTrue("nonexist is not found" in self.output)
286 # When verify multilple paths in a package, should output
290 self.assertTrue("usr/bin/bobcat" in self.output
291 and "etc/driver_aliases" not in self.output)
292 self.assertTrue("foo" in self.output)
293 self.assertTrue("OK" not in self.output
294 and self.output.count("ERROR") == 2
295 and "Hash" in self.output)
300 self.assertTrue("ERROR" not in self.output
301 and self.output.count("OK") == 1)
307 self.assertTrue("usr/bin/bobcat" in self.output
308 and "etc/bronze1" not in self.output
309 and "foo" in self.output and "bar" in self.output)
310 self.assertTrue(self.output.count("OK") == 1
311 and self.output.count("ERROR") == 2
312 and "Hash" in self.output)
314 self.assertTrue("usr/bin/bobcat" in self.output
315 and "foo" in self.output and "bar" in self.output)
316 self.assertTrue("OK" in self.output
317 and self.output.count("ERROR") == 2
318 and "Hash" in self.output)
323 """Test that when input is mix of FMRIs and paths, verbose output
332 self.assertTrue("foo" in self.output and "OK" in self.output)
336 self.assertTrue("foo" in self.output and "OK" in self.output)
341 self.assertTrue("foo" in self.output
342 and "etc/name_to_major" not in self.output)
343 self.assertTrue(self.output.count("OK") == 1)
348 self.assertTrue("foo" in self.output
349 and "bar" not in self.output
350 and "etc/name_to_major" not in self.output)
351 self.assertTrue(self.output.count("OK") == 1)
353 self.assertTrue("bar" in self.output
354 and "foo" not in self.output)
355 self.assertTrue(self.output.count("OK") == 1)
357 self.assertTrue("bar" in self.output
358 and "foo" not in self.output)
359 self.assertTrue(self.output.count("OK") == 1)
364 self.assertTrue("foo" not in self.output and
365 "bar" not in self.output and "not found" in self.output)
366 self.assertTrue("OK" not in self.output)
372 # Should not output error for the package if the modified file
375 self.assertTrue("bar" in self.output
376 and "OK" in self.output and "ERROR" not in self.output)
381 self.assertTrue("foo" in self.output and "bar" not in self.output
382 and "usr/bin/bobcat" in self.output)
383 self.assertTrue(self.output.count("ERROR") == 2
384 and "OK" not in self.output)
389 self.assertTrue("ERROR" not in self.output
390 and self.output.count("OK") == 1)
428 assert("editable file has been changed" not in self.output)
431 self.output.index("etc/preserved")
432 self.output.index("editable file has been changed")
483 self.assertTrue(expected in self.output,
484 "Missing in verify output: {0}".format(expected))
490 """Test invalid fmri triggers correct output."""
500 """Test parsable output."""
510 out_json = json.loads(self.output)
524 out_json = json.loads(self.output)
545 self.assertTrue("ERROR" not in self.output and
546 "WARNING" not in self.output and "Unpackaged" in
547 self.output and "UNPACKAGED" in self.output)
548 self.assertTrue("----" not in self.output)
551 self.assertTrue("----" in self.output)
552 self.assertTrue("ERROR" not in self.output and
553 "WARNING" not in self.output and "Unpackaged" in
554 self.output and "UNPACKAGED" in self.output)
555 self.assertTrue("ERROR" not in self.output and
556 "WARNING" not in self.output and "bobcat" in
557 self.output and "UNPACKAGED" in self.output)
560 self.assertTrue("----" not in self.output)
561 self.assertTrue("ERROR" not in self.output and
562 "WARNING" not in self.output and "Unpackaged" in
563 self.output and "UNPACKAGED" not in self.output)
566 self.assertTrue("----" not in self.output)
567 self.assertTrue("ERROR" not in self.output and
568 "WARNING" not in self.output and "Unpackaged" in
569 self.output and "UNPACKAGED" in self.output)
570 self.assertTrue("ERROR" not in self.output and
571 "WARNING" not in self.output and "Unpackaged" in
572 self.output and "bobcat" not in self.output)
576 self.assertTrue(not self.output)
585 self.assertTrue("----" in self.output and "bobcat" in
586 self.output and "UNPACKAGED" in self.output)
588 out_json = json.loads(self.output)
597 # Test parsable output for --unpackaged.
599 out_json = json.loads(self.output)
617 # Test parsable output for --unpackaged-only.
619 out_json = json.loads(self.output)