test/iscsi/fuzz: remove unnecessary delete_tmp_files()
This function removes leftover fio files, but fio is not run in this test. Remove it. Change-Id: I1522a018c9cc3093bd1bcb1c2361dd7b31deacbe Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1292 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
0172f27974
commit
bad71510cb
@ -9,11 +9,6 @@ source $rootdir/test/iscsi_tgt/common.sh
|
|||||||
# $2 = test type posix or vpp. defaults to posix.
|
# $2 = test type posix or vpp. defaults to posix.
|
||||||
iscsitestinit $1 $2
|
iscsitestinit $1 $2
|
||||||
|
|
||||||
delete_tmp_files() {
|
|
||||||
rm -f ./local-job0-0-verify.state
|
|
||||||
rm -f ./local-job1-1-verify.state
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -z "$TARGET_IP" ]; then
|
if [ -z "$TARGET_IP" ]; then
|
||||||
echo "TARGET_IP not defined in environment"
|
echo "TARGET_IP not defined in environment"
|
||||||
exit 1
|
exit 1
|
||||||
@ -52,7 +47,7 @@ $rpc_py bdev_malloc_create $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE
|
|||||||
$rpc_py iscsi_create_target_node disk1 disk1_alias 'Malloc0:0' $PORTAL_TAG:$INITIATOR_TAG 256 -d
|
$rpc_py iscsi_create_target_node disk1 disk1_alias 'Malloc0:0' $PORTAL_TAG:$INITIATOR_TAG 256 -d
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
trap 'killprocess $iscsipid; iscsitestfini $1 $2; delete_tmp_files; exit 1' SIGINT SIGTERM EXIT
|
trap 'killprocess $iscsipid; iscsitestfini $1 $2; exit 1' SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
$rootdir/test/app/fuzz/iscsi_fuzz/iscsi_fuzz -m 0xF0 -T $TARGET_IP -t 30 2>$output_dir/iscsi_autofuzz_logs.txt
|
$rootdir/test/app/fuzz/iscsi_fuzz/iscsi_fuzz -m 0xF0 -T $TARGET_IP -t 30 2>$output_dir/iscsi_autofuzz_logs.txt
|
||||||
|
|
||||||
@ -61,8 +56,6 @@ $rpc_py iscsi_delete_target_node 'iqn.2016-06.io.spdk:disk1'
|
|||||||
# Delete malloc device
|
# Delete malloc device
|
||||||
$rpc_py bdev_malloc_delete Malloc0
|
$rpc_py bdev_malloc_delete Malloc0
|
||||||
|
|
||||||
delete_tmp_files
|
|
||||||
|
|
||||||
trap - SIGINT SIGTERM EXIT
|
trap - SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
killprocess $iscsipid
|
killprocess $iscsipid
|
||||||
|
Loading…
Reference in New Issue
Block a user