21601: Move --short-tests-only check to arvados_version
[arvados.git] / tools / user-activity / arvados_version.py
index 020ec3873829b73fd9ae41c4f26764f88ce732e2..b594f88a7c87b6c5a021131602a088e80833a4a4 100644 (file)
@@ -71,6 +71,14 @@ if REPO_PATH is None:
         if (SETUP_DIR / mod_name).is_dir()
     )
 
+def short_tests_only(arglist=sys.argv):
+    try:
+        arglist.remove('--short-tests-only')
+    except ValueError:
+        return False
+    else:
+        return True
+
 def git_log_output(path, *args):
     return subprocess.check_output(
         ['git', '-C', str(REPO_PATH),