aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEryu Guan <eguan@redhat.com>2017-01-24 18:30:04 +0800
committerEryu Guan <eguan@redhat.com>2017-01-27 16:06:12 +0800
commitaec50848c3d28b63d9772d38e7c8b16dd0e1733c (patch)
tree4e69ff3f6210e4f73cbc51d12ffd049fe5890a59
parent614e33f1b56b1a4cfb0f436f4760661f826019c2 (diff)
downloadxfstests-dev-aec50848c3d28b63d9772d38e7c8b16dd0e1733c.tar.gz
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>
-rwxr-xr-xtools/sort-group2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sort-group b/tools/sort-group
index 84944ed606..6fcaad7706 100755
--- a/tools/sort-group
+++ b/tools/sort-group
@@ -103,7 +103,7 @@ def nextid_main():
xid = startid
while xid in xkeys:
xid += 1
- print('%s/%d' % (group, xid))
+ print('%s/%03d' % (group, xid))
if __name__ == '__main__':
if 'nextid' in sys.argv[0]: