|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 2/3] mg-schema-test-database: New --max-flight option
This can be useful when testing things which involve old data, rather
than things which just involve new data.
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
mg-schema-test-database | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/mg-schema-test-database b/mg-schema-test-database
index 9be0625..286010d 100755
--- a/mg-schema-test-database
+++ b/mg-schema-test-database
@@ -4,7 +4,7 @@
#
#
# ./mg-schema-test-database create [_SUFFIX] [TASK...] \
-# [-fMINFLIGHT | -f-NUMFLIGHTS] \
+# [-fMINFLIGHT | -f-NUMFLIGHTS] [--max-flight=MAXFLIGHT] \
# [-hCTRL_DAEMONS_HOST] [-fOWNER_D_PORT[,QUEUE_D_PORT]]
#
# does `drop' and then creates
@@ -231,6 +231,7 @@ create)
tasks=''
minflight=-100
+ maxflightcond='1=1'
for arg in "$@"; do
case "$arg" in
*@*)
@@ -251,6 +252,9 @@ create)
;;
_*) suffix="$arg"
;;
+ --max-flight=*)
+ maxflightcond="flight <= ${arg#*=}"
+ ;;
-f*) minflight="${arg#-f}"
;;
-h*) ctrlhost="${arg#-h}"
@@ -471,7 +475,9 @@ END
schema_updates) continue ;;
esac
case " $ftables " in
- *" $table "*) condition="flight >= $minflight" ;;
+ *" $table "*)
+ condition="flight >= $minflight AND $maxflightcond"
+ ;;
*) condition="1=1" ;;
esac
each_copy_table $table "$condition"
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |