[PATCH 0/1] [autotest-client-tests] ubuntu_zfs_xfs_generic: fix
Paolo Pisati
paolo.pisati at canonical.com
Mon Jan 27 14:38:26 UTC 2020
Ubuntu_zfs_xfs_generic runs several filesystem tests and compare their output
against some "good test" results: any difference in the printed output is
interpreted as a test failure.
The attached patch is a clean upstream cherry pick from the xfstest-dev
git tree, and it fixes an awk 5.x (Focal) warning that previous versions
grokked fine.
$ cat > foofile << EOD
fooline
# foo comment
fooline2
#foocomment2
fooline3
EOD
Focal:
$ awk -V | head -n1
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
$ awk '/\#/ {print $0}' foofile
awk: cmd. line:1: warning: regexp escape sequence `\#' is not a known
regexp operator
# foo comment
#foocomment2
$ awk '/#/ {print $0}' foofile
# foo comment
#foocomment2
while with previous awk versions (e.g. Bionic and Xenial):
Bionic:
$ awk -V | head -n 1
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 4.0.1, GNU MP 6.1.2)
$ awk '/\#/ {print $0}' foofile
# foo comment
#foocomment2
$ awk '/#/ {print $0}' foofile
# foo comment
#foocomment2
Xenial:
$ awk -V | head -n 1
GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)
$ awk '/\#/ {print $0}' foofile
# foo comment
#foocomment2
$ awk '/#/ {print $0}' foofile
# foo comment
#foocomment2
Paolo Pisati (1):
UBUNTU: ubuntu_zfs_xfs_generic: fix warning with awk 5.x
...ric-001-remove-unnecessary-backslash.patch | 35 +++++++++++++++++++
.../ubuntu_zfs_xfs_generic.py | 3 ++
2 files changed, 38 insertions(+)
create mode 100644 ubuntu_zfs_xfs_generic/0006-generic-001-remove-unnecessary-backslash.patch
--
2.24.0
More information about the kernel-team
mailing list