From 4ec135f92506997105f854f404f8695c4b9344e4 Mon Sep 17 00:00:00 2001
From: Csók Tamás <godhak@gmail.com>
Date: Thu, 5 Mar 2015 16:22:54 +0100
Subject: [PATCH] updated fab selenium command

---
 circle/fabfile.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/circle/fabfile.py b/circle/fabfile.py
index 8815dc6..58d8f6f 100755
--- a/circle/fabfile.py
+++ b/circle/fabfile.py
@@ -111,12 +111,14 @@ def test(test=""):
 
 @roles('portal')
 def selenium(test=""):
-    "Run portal selenium tests"
+    "Run selenium tests"
     with _workon("circle"), cd("~/circle/circle"):
-        # TODO Check if the user have any X so we don't have force xvfb
+        if test == "f":
+            test = "--failed"
+        else:
+            test += " --with-id"
         run("xvfb-run ./manage.py test "
-            "--settings=circle.settings.selenium_test %(test)s" % {
-                'test': test})
+            "--settings=circle.settings.selenium_test %s" % test)
 
 
 def pull(dir="~/circle/circle"):
--
libgit2 0.26.0