summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-26 21:39:31 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-26 21:39:31 +0100
commit51ddc990bd72b9e3d212edfe2db7601930b1830a (patch)
tree8e442ef16abd0e55beed1280714f1079c8572ced /yarns/900-implements.yarn
parent360a4db571a8e2b187f2fb8fd83bfffa09504cff (diff)
downloadick2-51ddc990bd72b9e3d212edfe2db7601930b1830a.tar.gz
Fix: use Python not shell
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn8
1 files changed, 5 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
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']))