diff --git a/iris-bot b/iris-bot
index 8b8844f3c4178b35a5f1feae1a5d32acde5d9a49..ab778e324ea3424c8b9e5371c1d85975631331b3 100755
--- a/iris-bot
+++ b/iris-bot
@@ -128,7 +128,7 @@ def time(args):
         'IRIS_REV': test_commit,
         'TIMING_AD_HOC_ID': id+"-test",
     }
-    if args.test_branch is None:
+    if args.test_rev is None:
         test_pipeline = trigger_build(project['name'], project['branch'], vars)
         print("    Test pipeline running at {}".format(test_pipeline['web_url']))
     else: