diff mbox

[xfstest,v4,6/7] overlay: skip check for tests finished with corrupt filesystem

Message ID 20180118040033.19555-7-yi.zhang@huawei.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhang Yi Jan. 18, 2018, 4 a.m. UTC
No post-test check of the overlay dirs is required if case leaves
corrupt filesystem after test. We shoud use _require_scratch_nocheck()
instead of _require_scratch() in these cases.

Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
---
 tests/overlay/019 | 2 +-
 tests/overlay/031 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Amir Goldstein Jan. 18, 2018, 8:02 a.m. UTC | #1
On Thu, Jan 18, 2018 at 6:00 AM, zhangyi (F) <yi.zhang@huawei.com> wrote:
> No post-test check of the overlay dirs is required if case leaves
> corrupt filesystem after test. We shoud use _require_scratch_nocheck()
> instead of _require_scratch() in these cases.
>
> Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>

> ---
>  tests/overlay/019 | 2 +-
>  tests/overlay/031 | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/overlay/019 b/tests/overlay/019
> index 3e2bc4e..575aaf7 100755
> --- a/tests/overlay/019
> +++ b/tests/overlay/019
> @@ -46,7 +46,7 @@ rm -f $seqres.full
>  # real QA test starts here
>  _supported_fs overlay
>  _supported_os Linux
> -_require_scratch
> +_require_scratch_nocheck
>
>  # Remove all files from previous tests
>  _scratch_mkfs
> diff --git a/tests/overlay/031 b/tests/overlay/031
> index 186b409..90a06af 100755
> --- a/tests/overlay/031
> +++ b/tests/overlay/031
> @@ -67,7 +67,7 @@ rm -f $seqres.full
>  # real QA test starts here
>  _supported_fs overlay
>  _supported_os Linux
> -_require_scratch
> +_require_scratch_nocheck
>
>  # remove all files from previous runs
>  _scratch_mkfs
> --
> 2.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/overlay/019 b/tests/overlay/019
index 3e2bc4e..575aaf7 100755
--- a/tests/overlay/019
+++ b/tests/overlay/019
@@ -46,7 +46,7 @@  rm -f $seqres.full
 # real QA test starts here
 _supported_fs overlay
 _supported_os Linux
-_require_scratch
+_require_scratch_nocheck
 
 # Remove all files from previous tests
 _scratch_mkfs
diff --git a/tests/overlay/031 b/tests/overlay/031
index 186b409..90a06af 100755
--- a/tests/overlay/031
+++ b/tests/overlay/031
@@ -67,7 +67,7 @@  rm -f $seqres.full
 # real QA test starts here
 _supported_fs overlay
 _supported_os Linux
-_require_scratch
+_require_scratch_nocheck
 
 # remove all files from previous runs
 _scratch_mkfs