]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove outdated shell scripts 579/head
authorZack Cerza <zack@redhat.com>
Wed, 22 Jul 2015 21:37:37 +0000 (15:37 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 22 Jul 2015 21:37:37 +0000 (15:37 -0600)
The cleanup-*.sh scripts are obsoleted by teuthology-nuke features. The
check-syntax.sh script is obsoleted by our tox configuration.

Signed-off-by: Zack Cerza <zack@redhat.com>
check-syntax.sh [deleted file]
cleanup-and-unlock.sh [deleted file]
cleanup-run.sh [deleted file]
cleanup-user.sh [deleted file]

diff --git a/check-syntax.sh b/check-syntax.sh
deleted file mode 100755 (executable)
index f63586f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-which pyflakes > /dev/null
-if test $? != 0; then
-    echo "$0 requires pyflakes (sudo apt-get install pyflakes)"
-    exit 1
-fi
-
-d=$(dirname $0)
-for f in $(find ${d}/teuthology | grep py$); do
-    if test -n "${V}"; then
-       echo "checking ${f}"
-    fi
-    pyflakes ${f} > >( \
-       grep -v "'Lock' imported but unused" | \
-       grep -v "'MachineLock' imported but unused" \
-       )
-done
diff --git a/cleanup-and-unlock.sh b/cleanup-and-unlock.sh
deleted file mode 100755 (executable)
index 7b30a2b..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh -ex
-
-bin/teuthology-nuke -t $1 -r --owner $2
-bin/teuthology-lock --unlock -t $1 --owner $2
diff --git a/cleanup-run.sh b/cleanup-run.sh
deleted file mode 100755 (executable)
index 50bc74d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh -ex
-
-owner=`teuthology-lock -a --list --desc-pattern /$1/ --status up | grep locked_by | head -1 | awk '{print $2}' | sed 's/"//g' | sed 's/,//'`
-teuthology-lock --list-targets --desc-pattern /$1/ --status up --owner $owner > /tmp/$$
-teuthology-nuke --unlock -t /tmp/$$ -r --owner $owner
-rm /tmp/$$
-
diff --git a/cleanup-user.sh b/cleanup-user.sh
deleted file mode 100755 (executable)
index 91d12b1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh -ex
-
-teuthology-lock --list-targets --owner $1 --status up > /tmp/$$
-teuthology-nuke --unlock -t /tmp/$$ -r --owner $1
-rm /tmp/$$
-