diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2023-05-24 14:35:21 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-05-31 09:25:25 +0000 |
commit | 31b2171ff2cd7d4395d706cd6d8320eb72af2bca (patch) | |
tree | e93af0183909d5487fd8ce1e07c30498fe2a94e0 /common/scripts/agl-extend-test.sh | |
parent | 4274edd81ea5bc5f09342eba9e99c2c1e4af5164 (diff) |
SPEC-4816: Fix upload in agl-extend-test.shoctopus
agl-extend-test.sh fail to upload a zip file, since it give the
directory instead of the file to upload.
While fixing this, add some extra test and debug around upload of files.
Bug-AGL: SPEC-4816
Fixes: 2e5067e302bc ("qa-testdefinitions: add yaml and script for agl extend test")
Change-Id: Ieeefa239398a82b2156391dfe8f58f654a6a29b3
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
(cherry picked from commit ecc62413b8ee33ecf886b2f4161b486c47db38de)
Diffstat (limited to 'common/scripts/agl-extend-test.sh')
-rwxr-xr-x | common/scripts/agl-extend-test.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/scripts/agl-extend-test.sh b/common/scripts/agl-extend-test.sh index fd3a4f8..51dfcb1 100755 --- a/common/scripts/agl-extend-test.sh +++ b/common/scripts/agl-extend-test.sh @@ -12,7 +12,7 @@ fi if [ -x ./artiproxy-upload.sh ] ; then - LOG_DIR=/var/run/agl-test/logs/log-to-report + LOG_DIR='/var/run/agl-test/logs/log-to-report' ZIP_FILE=`ls ${LOG_DIR} | grep agl-test-log*` if [ -z $ZIP_FILE ] ; then @@ -20,7 +20,10 @@ if [ -x ./artiproxy-upload.sh ] ; then exit 1 fi - ./artiproxy-upload.sh $LOG_DIR $ZIP_FILE + echo "DEBUG: upload LOG_DIR=${LOG_DIR}XXX" + echo "DEBUG: upload ZIP_FILE=${ZIP_FILE}XXX" + + ./artiproxy-upload.sh "$LOG_DIR/$ZIP_FILE" "$ZIP_FILE" if [ $? -eq 1 ] ; then echo "Upload of ${ZIP_FILE} failed" exit 1 |