From 7e5058abdf7213d1a24e0d02c5eef9d3d0595058 Mon Sep 17 00:00:00 2001 From: Hao Yunfei Date: Wed, 26 Jun 2013 21:17:10 +0800 Subject: [PATCH] Update pack.sh in WRT to add solution when signing folder is not exist Change-Id: I6aea7d3cf1b2f7b804f2ebb8c92011da6ac53f82 Signed-off-by: Hao Yunfei --- tct-appwgt-wrt-tests/pack.sh | 4 ++++ tct-ext01-wrt-tests/pack.sh | 4 ++++ tct-ext02-wrt-tests/pack.sh | 4 ++++ tct-pm-wrt-tests/pack.sh | 4 ++++ tct-rt01-wrt-tests/pack.sh | 4 ++++ tct-rt02-wrt-tests/pack.sh | 4 ++++ tct-stab-wrt-tests/pack.sh | 4 ++++ tct-ui-wrt-tests/pack.sh | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/tct-appwgt-wrt-tests/pack.sh b/tct-appwgt-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-appwgt-wrt-tests/pack.sh +++ b/tct-appwgt-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-ext01-wrt-tests/pack.sh b/tct-ext01-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-ext01-wrt-tests/pack.sh +++ b/tct-ext01-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-ext02-wrt-tests/pack.sh b/tct-ext02-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-ext02-wrt-tests/pack.sh +++ b/tct-ext02-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-pm-wrt-tests/pack.sh b/tct-pm-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-pm-wrt-tests/pack.sh +++ b/tct-pm-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-rt01-wrt-tests/pack.sh b/tct-rt01-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-rt01-wrt-tests/pack.sh +++ b/tct-rt01-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-rt02-wrt-tests/pack.sh b/tct-rt02-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-rt02-wrt-tests/pack.sh +++ b/tct-rt02-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-stab-wrt-tests/pack.sh b/tct-stab-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-stab-wrt-tests/pack.sh +++ b/tct-stab-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi diff --git a/tct-ui-wrt-tests/pack.sh b/tct-ui-wrt-tests/pack.sh index 3a56d8f..fc85c46 100755 --- a/tct-ui-wrt-tests/pack.sh +++ b/tct-ui-wrt-tests/pack.sh @@ -113,6 +113,10 @@ for app in $all_dirs; do cd ../../signing ./sign-widget.sh --config default.conf ../$NAME/$app.wgt cd - + else + echo "Not found signing folder." + rm -rf $suite_dir/*.wgt + exit 1 fi echo -e "Done\n" fi -- 2.7.4