From 508ae852e4023f944782f751065b437c6a62240d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 22 Feb 2025 02:08:22 +0300 Subject: [PATCH] Fix trap in test_rebalance_verify --- tests/test_rebalance_verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_rebalance_verify.sh b/tests/test_rebalance_verify.sh index 21e4d32c..c0c553d7 100755 --- a/tests/test_rebalance_verify.sh +++ b/tests/test_rebalance_verify.sh @@ -12,7 +12,7 @@ $ETCDCTL put /vitastor/config/inode/1/1 '{"name":"testimg","size":'$((IMG_SIZE*1 NBD_DEV=$(sudo build/src/client/vitastor-nbd map --nbd_timeout 180 --etcd_address $ETCD_URL --image testimg --logfile ./testdata/nbd.log &) -trap "sudo build/src/client/vitastor-nbd unmap $NBD_DEV"'; kill -9 $(jobs -p)' EXIT +trap "sudo build/src/client/vitastor-nbd unmap $NBD_DEV"' || true; kill -9 $(jobs -p)' EXIT sudo chown $(id -u) $NBD_DEV