From 51ddc990bd72b9e3d212edfe2db7601930b1830a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 26 Nov 2017 21:39:31 +0100 Subject: Fix: use Python not shell --- yarns/900-implements.yarn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'yarns/900-implements.yarn') diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 4aa602f..27c9aab 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -119,9 +119,11 @@ along with this program. If not, see . assertEqual(expected, vars['status_code']) IMPLEMENTS THEN body matches (.+) - echo '-----------------------------------------------' - sed 's/^/---> /' ick_controller.log - echo '-----------------------------------------------' + print('-----------------------------------------------') + with open('ick_controller.log') as f: + for line in f: + print('---->', line) + print('-----------------------------------------------') expected_text = get_next_match() expected = json.loads(expected_text) print('actual body', repr(vars['body'])) -- cgit v1.2.1