# 'should.py' usually checks that the command exits with 0. # Other exit codes can be given # The files differ $ Exit code is exactly '1' !EXIT_CODE: 1 diff demo/hello.should demo/cal.should $ Exit code is not zero !EXIT_CODE: + diff demo/hello.should demo/cal.should $ 'world' is in the diff : world # Different exit codes may be tested for different commands !EXIT_CODE: 0 diff demo/hello.should demo/hello.should # As other directives, !EXIT_CODE should be given *before* the command # that needs to be checked. It then applies to all following commands. diff demo/cal.should demo/cal.should