summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-08-14 12:47:33 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-08-14 18:40:07 +0100
commit33abcd4e771e0bd3129383eb56f4ba31ff82a24c (patch)
tree5f575137850c1f1267f41317d1a8be5f449015b2 /tests/lib
parentca007b4dde367c1316f4bfe36895dbea2fd34956 (diff)
Test suite: Canonicalise json output when generating aq
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 38605bd..f1ffa8b 100644
--- a/tests/lib
+++ b/tests/lib
@@ -253,7 +253,8 @@ t-archive-updated () {
"filename" => "$4",
};
END {
- print to_json \@v or die $!;
+ my $json = JSON->new->canonical();
+ print $json->encode(\@v) or die $!;
}
'
}