Whamcloud - gitweb
EX-4052 tests: use stack_trap within a subtest in sanity-lipe
authorJian Yu <yujian@whamcloud.com>
Mon, 10 Jan 2022 08:37:25 +0000 (00:37 -0800)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 11 Jan 2022 14:39:11 +0000 (14:39 +0000)
commitf777a0a7390dfae4a49555d27416c898bde010f6
treef1012d7720230c978d30e1a4d5ea3a42e48a8251
parent0dbbe482148d93c8d08a95bb24aa9ffc597284f9
EX-4052 tests: use stack_trap within a subtest in sanity-lipe

Trap in a subshell is handled differently across bash versions.
This patch moves stack_trap into subtests to make them work
reliably.

Test-Parameters: trivial clientdistro=el7.9 testlist=sanity-lipe
Test-Parameters: trivial clientdistro=el8.4 testlist=sanity-lipe

Lustre-change: https://review.whamcloud.com/45889
Lustre-commit: db8e16fd8434651ed6102a6be79828346775f87e

Change-Id: I00eac5a8cf9511c8e1e531eb54f52ce443e5f77e
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46026
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-lipe.sh