tools/nextid: pad 0 in next test id seq number
authorEryu Guan <eguan@redhat.com>
Tue, 24 Jan 2017 10:30:04 +0000 (18:30 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 27 Jan 2017 08:06:12 +0000 (16:06 +0800)
commitaec50848c3d28b63d9772d38e7c8b16dd0e1733c
tree4e69ff3f6210e4f73cbc51d12ffd049fe5890a59
parent614e33f1b56b1a4cfb0f436f4760661f826019c2
tools/nextid: pad 0 in next test id seq number

nextid returns the next available seq number, but it doesn't pad id
number with 0, e.g.

./tools/nextid ext4
23

After the fix it returns:

./tools/nextid ext4
023

This eases the process of moving tests around in a script.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tools/sort-group