diff --git a/tests/test-flagprocessor.t b/tests/test-flagprocessor.t
index eb676c35a29b2954b2a1bc37e1055d2081561a22_dGVzdHMvdGVzdC1mbGFncHJvY2Vzc29yLnQ=..49b00a04028ffa27a4833607bdee435eee8e039c_dGVzdHMvdGVzdC1mbGFncHJvY2Vzc29yLnQ= 100644
--- a/tests/test-flagprocessor.t
+++ b/tests/test-flagprocessor.t
@@ -1,3 +1,7 @@
+# Rust index does not support creating new flags dynamically
+
+#if no-rust
+
 # Create server
   $ hg init server
   $ cd server
@@ -304,3 +308,6 @@
 
   $ hg status
   $ hg diff
+
+
+#endif
diff --git a/tests/test-verify.t b/tests/test-verify.t
index eb676c35a29b2954b2a1bc37e1055d2081561a22_dGVzdHMvdGVzdC12ZXJpZnkudA==..49b00a04028ffa27a4833607bdee435eee8e039c_dGVzdHMvdGVzdC12ZXJpZnkudA== 100644
--- a/tests/test-verify.t
+++ b/tests/test-verify.t
@@ -335,6 +335,9 @@
   checked 1 changesets with 1 changes to 1 files
   $ cd ..
 
+# rust index does not allow creation of new flags dynamically
+#if no-rust
+
 test flag processor and skipflags
 
   $ hg init skipflags
@@ -363,3 +366,4 @@
   [1]
   $ hg verify --config verify.skipflags=2147483647 -q
 
+#endif