blob: 8e8948999844c3a92b53c9bfa30e732840949e47 [file] [log] [blame]
J. Richard Barnette9e2b3632014-06-06 18:08:26 -07001#!/bin/bash
2
3CMD=$(basename $0)
4usage() {
5 echo "usage: $CMD <job-directory>" >&2
6 exit 1
7}
8
9if [ $# -ne 1 ]; then
10 usage
11fi
12
13AUTOTEST=/usr/local/autotest/results
14DIR=$1
15if [ ! -d $AUTOTEST/$DIR ]; then
16 echo "$DIR is not a directory in $AUTOTEST" >&2
17 usage
18fi
19
20cd $AUTOTEST
21
22GET_GSURI="
23import common
Michael Tang0a30d462016-06-27 11:44:04 -070024from autotest_lib.client.common_lib import utils
Mike Frysinger5d084df2019-11-19 18:15:53 -050025print(utils.get_offload_gsuri().strip('/'))
J. Richard Barnette9e2b3632014-06-06 18:08:26 -070026"
Mike Frysinger5d084df2019-11-19 18:15:53 -050027GSURI=$(cd .. ; python2 -c "$GET_GSURI")
J. Richard Barnette9e2b3632014-06-06 18:08:26 -070028(
29 gsutil ls -R "$GSURI/$DIR/*" | sed "s=^$GSURI/==p"
30 find $DIR -type f
31) | sort | uniq -u