Allow table_id override from --test-params.
diff --git a/src/python/oftest/testutils.py b/src/python/oftest/testutils.py
index 6892b39..45e5357 100644
--- a/src/python/oftest/testutils.py
+++ b/src/python/oftest/testutils.py
@@ -970,6 +970,17 @@
except:
return default
+def test_param_get_table():
+ """
+ Return table_id to use.
+
+ The default table_id is 0.
+ This can be overridden by specifying "table" in --test-params.
+
+ e.g: --test-params table=1
+ """
+ return test_param_get("table", 0)
+
def action_generate(parent, field_to_mod, mod_field_vals):
"""
Create an action to modify the field indicated in field_to_mod