This instance will be upgraded to Heptapod 0.26.0rc1 on 2021-10-25 at 14:00 UTC+2 (a few minutes of down time)

Commit b8bc6d67 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

tests: improve tarball size check in test-check-sdist.t

Instead of relying on globs for checking numbers, let's rely on find(1)'s
ability to check file size in a more intelligent way.

I would write the number as +800k, but it's not supported in some
implementations of find, so it's not portable. Instead have to use "c" to make
find(1) use bytes instead of 512-byte blocks, which is the default (???).

--HG--
branch : stable
parent 2068ff9ad72a
Pipeline #23348 passed with stage
in 6 minutes and 46 seconds
......@@ -30,8 +30,8 @@ Archiving to a separate location to avoid hardlink mess when the repo is shared
no previously-included directories found matching '.gitlab'
$ cd "$TESTTMP"/dist
$ wc -c hg-evolve-*.tar.gz
8????? hg-evolve-*.tar.gz (glob)
$ find hg-evolve-*.tar.gz -size +800000c
hg-evolve-*.tar.gz (glob)
$ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files
$ wc -l files
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment