iscsi-test: return -2 when skipping tests
This lets a test driver distinguish failure from skipping unsupported tests. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@@ -122,7 +122,7 @@ int T0384_preventallow_target_cold_reset(const char *initiator, const char *url,
|
||||
|
||||
if (!data_loss) {
|
||||
printf("--dataloss flag is not set. Skipping test\n");
|
||||
ret = -1;
|
||||
ret = -2;
|
||||
goto finished;
|
||||
}
|
||||
|
||||
@@ -132,6 +132,7 @@ int T0384_preventallow_target_cold_reset(const char *initiator, const char *url,
|
||||
|
||||
if (!removable) {
|
||||
printf("Media is not removable. Skipping tests\n");
|
||||
ret = -2;
|
||||
goto finished;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user