Restore the various filter in rpmlintrc: they are useful to check srpm
and rpm files.
Update mrel to test to srpm and rpm files. Make a first test that
checks srpm and spec file. This test ignores the unused-rpmlintrc
warning, as it does not test rpm files. Then make a second test after
building the rpm files. This second test checks all files (spec, srpm
and rpms) to take into account any real unused-rpmlintrc issue.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Instead of using wget and curl for different installation tasks, move
all usages to curl to only rely on one tool.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Update mrel to test RPM build before dist builds in order to pack the
tasks requiring sudo privileges in the early stages.
The acquired sudo token will this way still be valid for all mrel sudo
tasks. The regular lifetime of a sudo token is 5 minutes.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Change Modules build tests to install in a user-writable directory (in
/tmp). Sudo privileges are thus not needed anymore for this stage.
Remove the build test from the local git repository. This installation
style is covered by the installation test from the fetched repository.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Update gitlog2changelog.py script with recent changes made on it in its
upstream repository (https://github.com/networkupstools/nut/, commit
e4739b9).
Keep our local adaptation:
* TextWrapper specific configuration
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Give a more clear name to the "contrib" directory that contains
architecture and configuration independent data. New directory name is
"share", which correctly matches the destination of these files into the
installation directory.
Update gitlog2changelog.py script with recent changes made on it in its
upstream repository (https://github.com/networkupstools/nut/).
Keep our local adaptations:
* --pretty=medium git log option
* TextWrapper specific configuration
Remove one local adaptation (newline separator between commits) to obtain
more terse output.
When TESTSUITE_ENABLE_MODULECACHE environment variable is set, cache
file is built for all modulepaths of the testsuite. Tests are run using
the cache files to resolve available modules.
According to ShellCheck's documentation:
When command expansions are unquoted, word splitting and globbing will occur.
This often manifests itself by breaking when filenames contain spaces.
Related: https://www.shellcheck.net/wiki/SC2046
Related: #470
Some variables, that were unquoted intentionally were converted to arrays.
According to ShellCheck's documentation:
Quoting variables prevents word splitting and glob expansion, and prevents
the script from breaking when input contains spaces, line feeds, glob
characters and such.
Related: https://www.shellcheck.net/wiki/SC2086
Related: #470
According to ShellCheck's documentation:
Use "$@" (with quotes) to prevent whitespace problems. $* and ${array[*]},
unquoted, is subject to word splitting and globbing.
Related: https://www.shellcheck.net/wiki/SC2048
Related: #470
According to ShellCheck's documentation:
-a and -o in [ .. ] test expressions are not well defined, and can cause
incorrect results when arguments start with dashes or contain !.
Related: https://www.shellcheck.net/wiki/SC2166
Related: #470
According to ShellCheck's documentation:
Double quotes around $@ and ${array[@]}) prevent globbing and word splitting
of individual elements, while still expanding to multiple separate arguments.
Related: https://www.shellcheck.net/wiki/SC2068
Related: #470
Update mb script to skip several releases and be able to run bench or
profiling on old and recent releases. Versions 4.1, 4.3, 4.5, 4.7 and
5.1 are retained for bench mode. 4.5, 4.7 and 5.1 are retained for
profile mode.