[dia: 68/105] #19: Code formatting spaces vs tabs: exports_test.sh.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 68/105] #19: Code formatting spaces vs tabs: exports_test.sh.
- Date: Mon, 28 Jan 2019 19:25:03 +0000 (UTC)
commit 1113f97078d3979e2d8f4a474be74f1584ce6037
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Sun Jan 6 22:51:44 2019 +0000
#19: Code formatting spaces vs tabs: exports_test.sh.
tests/exports/exports_test.sh | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/tests/exports/exports_test.sh b/tests/exports/exports_test.sh
index de7f269e..e7fd6807 100755
--- a/tests/exports/exports_test.sh
+++ b/tests/exports/exports_test.sh
@@ -12,19 +12,20 @@ fi
FAILED=0
TEMP_DIR=$(mktemp -d)
for FILTER in ${EXPORT_PLUGINS}; do
- for FILE in *.dia; do
+ for FILE in *.dia; do
DIA_BASENAME=$(basename "${FILE}" .dia)
- OUTPUT=${TEMP_DIR}/${DIA_BASENAME}.${FILTER}
- EXPECTED_OUTPUT=${FILTER}/${DIA_BASENAME}.${FILTER}
- if ! ${RUN_DIA} -t ${FILTER} -e ${OUTPUT} ${FILE}; then
- echo ${FILTER} failed for ${FILE};
+ OUTPUT=${TEMP_DIR}/${DIA_BASENAME}.${FILTER}
+ EXPECTED_OUTPUT=${FILTER}/${DIA_BASENAME}.${FILTER}
+ if ! ${RUN_DIA} -t ${FILTER} -e ${OUTPUT} ${FILE}; then
+ echo ${FILTER} failed for ${FILE};
+ rm -r ${TEMP_DIR}
exit 1
- elif ! diff -q ${OUTPUT} ${EXPECTED_OUTPUT}; then
- echo "FAILED: ${FILTER} output different from expected for ${FILE}"
+ elif ! diff -q ${OUTPUT} ${EXPECTED_OUTPUT}; then
+ echo "FAILED: ${FILTER} output different from expected for ${FILE}"
#TODO: currently this fails almost all testcases. Why?
- FAILED=1
- fi;
- done;
+ FAILED=3
+ fi;
+ done;
done
rm -r ${TEMP_DIR}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]