]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/nightlies: move schedule_subset script alongside cron_wrapper
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 11 Mar 2024 14:08:15 +0000 (10:08 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 11 Mar 2024 17:45:52 +0000 (13:45 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/machine_types/schedule_subset.sh [deleted file]
qa/nightlies/schedule_subset.sh [new file with mode: 0755]

diff --git a/qa/machine_types/schedule_subset.sh b/qa/machine_types/schedule_subset.sh
deleted file mode 100755 (executable)
index 7f18c81..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash -e
-
-#command line => CEPH_BRANCH=<branch>; MACHINE_NAME=<machine_type>; SUITE_NAME=<suite>; ../schedule_subset.sh <day_of_week> $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL $KERNEL <$FILTER>
-
-partitions="$1"
-shift
-branch="$1"
-shift
-machine="$1"
-shift
-suite="$1"
-shift
-email="$1"
-shift
-kernel="$1"
-shift
-# rest of arguments passed directly to teuthology-suite
-
-echo "Scheduling $branch branch"
-teuthology-suite -v -c "$branch" -m "$machine" -k "$kernel" -s "$suite" --ceph-repo https://git.ceph.com/ceph.git --suite-repo https://git.ceph.com/ceph.git --subset "$((RANDOM % partitions))/$partitions" --newest 100 -e "$email" "$@"
diff --git a/qa/nightlies/schedule_subset.sh b/qa/nightlies/schedule_subset.sh
new file mode 100755 (executable)
index 0000000..7f18c81
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash -e
+
+#command line => CEPH_BRANCH=<branch>; MACHINE_NAME=<machine_type>; SUITE_NAME=<suite>; ../schedule_subset.sh <day_of_week> $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL $KERNEL <$FILTER>
+
+partitions="$1"
+shift
+branch="$1"
+shift
+machine="$1"
+shift
+suite="$1"
+shift
+email="$1"
+shift
+kernel="$1"
+shift
+# rest of arguments passed directly to teuthology-suite
+
+echo "Scheduling $branch branch"
+teuthology-suite -v -c "$branch" -m "$machine" -k "$kernel" -s "$suite" --ceph-repo https://git.ceph.com/ceph.git --suite-repo https://git.ceph.com/ceph.git --subset "$((RANDOM % partitions))/$partitions" --newest 100 -e "$email" "$@"