Project

General

Profile

Actions

Bug #12281

closed

zvol_swap_003_pos shouldn't use swapadd in cleanup

Added by Jason King over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tests
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

The zfs test zvol_swap_003_pos during cleanup does a swapadd in its cleanup function to re-add any system swap devices from /etc/vfstab. However this conflicts with the overall zvol swap test group cleanup function (usr/src/test/zfs-test/tests/functional/zvol/zvol_swap/cleanup.ksh) which also tries to do this.

Both trying to do this will cause the final cleanup to fail. Instead zvol_swap_003_pos should let the test group cleanup function handle this. The test group setup already removes any system swap devices prior to running any zvol swap tests, so omitting this step in the individual test would more correctly leave the system state as it was at the start of the test.

Actions

Also available in: Atom PDF