You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
538 B
32 lines
538 B
7 months ago
|
#!/bin/bash
|
||
|
|
||
|
CMD=$(basename $0)
|
||
|
usage() {
|
||
|
echo "usage: $CMD <job-directory>" >&2
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
if [ $# -ne 1 ]; then
|
||
|
usage
|
||
|
fi
|
||
|
|
||
|
AUTOTEST=/usr/local/autotest/results
|
||
|
DIR=$1
|
||
|
if [ ! -d $AUTOTEST/$DIR ]; then
|
||
|
echo "$DIR is not a directory in $AUTOTEST" >&2
|
||
|
usage
|
||
|
fi
|
||
|
|
||
|
cd $AUTOTEST
|
||
|
|
||
|
GET_GSURI="
|
||
|
import common
|
||
|
from autotest_lib.client.common_lib import utils
|
||
|
print(utils.get_offload_gsuri().strip('/'))
|
||
|
"
|
||
|
GSURI=$(cd .. ; python2 -c "$GET_GSURI")
|
||
|
(
|
||
|
gsutil ls -R "$GSURI/$DIR/*" | sed "s=^$GSURI/==p"
|
||
|
find $DIR -type f
|
||
|
) | sort | uniq -u
|