diff mbox

[2/2] live-image/fwts-frontend-text: conditional added to done_tests_finish() which creates a symbolic link to the latest results.html at the top level WORK_DIR

Message ID 1339632593-19496-3-git-send-email-vanhoof@canonical.com
State Accepted
Headers show

Commit Message

Chris Van Hoof June 14, 2012, 12:09 a.m. UTC
Signed-off-by: Chris Van Hoof <vanhoof@canonical.com>
---
 live-image/fwts-frontend-text |    7 +++++++
 1 file changed, 7 insertions(+)

Comments

Keng-Yu Lin June 14, 2012, 3:54 a.m. UTC | #1
On Thu, Jun 14, 2012 at 8:09 AM, Chris Van Hoof <vanhoof@canonical.com> wrote:
> Signed-off-by: Chris Van Hoof <vanhoof@canonical.com>
> ---
>  live-image/fwts-frontend-text |    7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/live-image/fwts-frontend-text b/live-image/fwts-frontend-text
> index 90c0fc7..932c068 100755
> --- a/live-image/fwts-frontend-text
> +++ b/live-image/fwts-frontend-text
> @@ -195,6 +195,13 @@ no_tests_finish()
>  #
>  done_tests_finish()
>  {
> +    if [ -n "${CASPER_DETECTED:+x}" ]; then
> +        cd $WORK_DIR
> +        ln -sf ./results.html ../../results.html
> +    else
> +        ln -sf $WORK_DIR/results.html /fwts/results.html
> +    fi
> +
>        dialog  --backtitle "$FWTS" --title "Testing Complete" --yesno \
>  "The results can be found on the USB stick in the\n
>  the directory: /fwts/$FWTS_DATE/$FWTS_TIME/results.log\n\n
> --
> 1.7.9.5
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Colin Ian King June 14, 2012, 7:36 a.m. UTC | #2
On 14/06/12 01:09, Chris Van Hoof wrote:
> Signed-off-by: Chris Van Hoof <vanhoof@canonical.com>
> ---
>   live-image/fwts-frontend-text |    7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/live-image/fwts-frontend-text b/live-image/fwts-frontend-text
> index 90c0fc7..932c068 100755
> --- a/live-image/fwts-frontend-text
> +++ b/live-image/fwts-frontend-text
> @@ -195,6 +195,13 @@ no_tests_finish()
>   #
>   done_tests_finish()
>   {
> +    if [ -n "${CASPER_DETECTED:+x}" ]; then
> +        cd $WORK_DIR
> +        ln -sf ./results.html ../../results.html
> +    else
> +        ln -sf $WORK_DIR/results.html /fwts/results.html
> +    fi
> +
>   	dialog  --backtitle "$FWTS" --title "Testing Complete" --yesno \
>   "The results can be found on the USB stick in the\n
>   the directory: /fwts/$FWTS_DATE/$FWTS_TIME/results.log\n\n
>
>

Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu June 14, 2012, 10:27 a.m. UTC | #3
On 06/14/2012 08:09 AM, Chris Van Hoof wrote:
> Signed-off-by: Chris Van Hoof<vanhoof@canonical.com>
> ---
>   live-image/fwts-frontend-text |    7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/live-image/fwts-frontend-text b/live-image/fwts-frontend-text
> index 90c0fc7..932c068 100755
> --- a/live-image/fwts-frontend-text
> +++ b/live-image/fwts-frontend-text
> @@ -195,6 +195,13 @@ no_tests_finish()
>   #
>   done_tests_finish()
>   {
> +    if [ -n "${CASPER_DETECTED:+x}" ]; then
> +        cd $WORK_DIR
> +        ln -sf ./results.html ../../results.html
> +    else
> +        ln -sf $WORK_DIR/results.html /fwts/results.html
> +    fi
> +
>   	dialog  --backtitle "$FWTS" --title "Testing Complete" --yesno \
>   "The results can be found on the USB stick in the\n
>   the directory: /fwts/$FWTS_DATE/$FWTS_TIME/results.log\n\n

Acked-by: Ivan Hu<ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/live-image/fwts-frontend-text b/live-image/fwts-frontend-text
index 90c0fc7..932c068 100755
--- a/live-image/fwts-frontend-text
+++ b/live-image/fwts-frontend-text
@@ -195,6 +195,13 @@  no_tests_finish()
 #
 done_tests_finish()
 {
+    if [ -n "${CASPER_DETECTED:+x}" ]; then
+        cd $WORK_DIR
+        ln -sf ./results.html ../../results.html
+    else
+        ln -sf $WORK_DIR/results.html /fwts/results.html
+    fi
+
 	dialog  --backtitle "$FWTS" --title "Testing Complete" --yesno \
 "The results can be found on the USB stick in the\n
 the directory: /fwts/$FWTS_DATE/$FWTS_TIME/results.log\n\n