From 716101a4dddb33504e45bbb3ba1af203f97ab99e Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 22 Jul 2015 15:37:37 -0600 Subject: [PATCH] Remove outdated shell scripts 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 --- check-syntax.sh | 18 ------------------ cleanup-and-unlock.sh | 4 ---- cleanup-run.sh | 7 ------- cleanup-user.sh | 6 ------ 4 files changed, 35 deletions(-) delete mode 100755 check-syntax.sh delete mode 100755 cleanup-and-unlock.sh delete mode 100755 cleanup-run.sh delete mode 100755 cleanup-user.sh diff --git a/check-syntax.sh b/check-syntax.sh deleted file mode 100755 index f63586f18f..0000000000 --- a/check-syntax.sh +++ /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 index 7b30a2b024..0000000000 --- a/cleanup-and-unlock.sh +++ /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 index 50bc74d136..0000000000 --- a/cleanup-run.sh +++ /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 index 91d12b17df..0000000000 --- a/cleanup-user.sh +++ /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/$$ - -- 2.39.5