35 roslib.load_manifest(
'rosbag')
42 from record_signal_cleanup_helper
import test_signal_cleanup
44 TEST_BAG_FILE_NAME =
'/tmp/record_sigint_cleanup_test.bag' 50 Test that rosbag cleans up after handling SIGINT 55 self.assertTrue(os.path.isfile(TEST_BAG_FILE_NAME))
56 self.assertFalse(os.path.isfile(TEST_BAG_FILE_NAME+
'.active'))
59 if __name__ ==
'__main__':
60 rostest.unitrun(
'test_rosbag',
'test_sigint_cleanup', RecordSigintCleanup, sys.argv)
def test_signal_cleanup(test_bag_file_name, test_signal)
def test_sigint_cleanup(self)