]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ZTS: Fix zfs_receive_004_neg
authorMatthew Ahrens <mahrens@delphix.com>
Thu, 27 Feb 2020 17:37:34 +0000 (09:37 -0800)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2020 17:37:34 +0000 (09:37 -0800)
commitab9646166d4f1fb01f648c678e896ea05a9517f6
treed47eb1716001f18048cc46856e5c82fe4a6dd4bf
parent2c3a83701dd185cadb30db4556256534e2930c7d
ZTS: Fix zfs_receive_004_neg

`zfs recv` of an incremental stream that already exists is ignored, with
a message like:

    receiving incremental stream of pool/fs@incsnap into pool/fs@incsnap
    snap testpool/testfs@incsnap already exists; ignoring

And the command exits successfully (exit code 0).

The zfs_receive_004_neg test is expecting that a this case will fail,
with nonzero exit code.

The fix is to remove this specific command from the test case.  This
lets us check that the remaining commands do in fact fail.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #10055
tests/test-runner/bin/zts-report.py
tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_004_neg.ksh