diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-07-11 18:26:51 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-07-15 11:12:03 +0000 |
commit | 0ebb95d7b0d539a175b39045c828dc67864d4fa2 (patch) | |
tree | 3df6fb3dd9cfd453bf87b159cf7a394b1c3a8c1b | |
parent | c24aa13505837b5893ef3842c4c9154127f4e858 (diff) | |
download | vaadin-framework-0ebb95d7b0d539a175b39045c828dc67864d4fa2.tar.gz vaadin-framework-0ebb95d7b0d539a175b39045c828dc67864d4fa2.zip |
Improve error message if @RunLocally is committed (#14216)
Change-Id: Ic35b71a01b207ff87072d2e46f34f171ec581fe0
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |