git » libjio » commit 345c111

tests/behaviour: Fix payload writing

author Alberto Bertogli
2009-07-12 23:06:54 UTC
committer Alberto Bertogli
2009-07-12 23:10:28 UTC
parent e416a50ba84fcfc76ec90c6f7a79278d74234d5d

tests/behaviour: Fix payload writing

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

tests/behaviour/tf.py +2 -2

diff --git a/tests/behaviour/tf.py b/tests/behaviour/tf.py
index 607e4e8..7cf4d61 100644
--- a/tests/behaviour/tf.py
+++ b/tests/behaviour/tf.py
@@ -204,8 +204,8 @@ class TransFile (object):
 		fd = open(self.path, 'w')
 		fd.write(struct.pack("!HHI", self.ver, self.flags, self.id))
 		for o in self.ops:
-			fd.write(struct.pack("!IQs", o.tlen, o.offset,
-				o.payload))
+			fd.write(struct.pack("!IQ", o.tlen, o.offset,))
+			fd.write(o.payload)
 		fd.write(struct.pack("!IQ", 0, 0))
 		fd.write(struct.pack("!II", self.numops, self.checksum))