From: Leif Åstrand Date: Fri, 11 Jul 2014 15:26:51 +0000 (+0300) Subject: Improve error message if @RunLocally is committed (#14216) X-Git-Tag: 7.3.0.rc1~11^2~114 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0ebb95d7b0d539a175b39045c828dc67864d4fa2;p=vaadin-framework.git Improve error message if @RunLocally is committed (#14216) Change-Id: Ic35b71a01b207ff87072d2e46f34f171ec581fe0 --- diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java index fa704d7b0b..74ddc6cb0c 100644 --- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -122,6 +122,10 @@ public abstract class AbstractTB3Test extends TestBenchTestCase { RunLocally runLocally = getClass().getAnnotation(RunLocally.class); if (runLocally != null) { + if (System.getenv().containsKey("TEAMCITY_VERSION")) { + throw new RuntimeException( + "@RunLocally is not supported for tests run on the build server"); + } capabilities = runLocally.value().getDesiredCapabilities(); setupLocalDriver(capabilities); } else {