From fc4c23fdbbef3b806bf618e7feb85142218cb8da Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Fri, 5 Oct 2018 15:50:59 +0100 Subject: [PATCH] tests: Sort size summary by image size and rootfs size Sort the table of image sizes by rootfs size after having sorted by image size so that the smaller rootfs images appear before larger ones when the image size is the same. Fixes #178. Signed-off-by: James O. D. Hunt --- tests/test_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index 6d305d1e4..13e942332 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -120,7 +120,7 @@ show_stats() "Type" \ "Name" - sort -k1,1n "$tmpfile" + sort -k1,1n -k3,3n "$tmpfile" rm -f "${tmpfile}" }