blob: f96bf53de4e9fd782b0098cd1bd6c771161ae271 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.test.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
// Note this annotation may not do anything yet. Check crbug.com/619055
// for latest status.
/**
* Mark a test as flaky and should be retried on failure. The test is
* considered passed by the test script if any retry succeeds.
*
* Long term, this should be merged with @FlakyTest. But @FlakyTest means
* has specific meaning that is currently different from RetryOnFailure.
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RetryOnFailure {
String message() default "";
}