diff mbox

[kvm-unit-tests,v6,1/3] run_tests: fix errno for param parsing

Message ID 1484192182-13760-2-git-send-email-peterx@redhat.com
State New
Headers show

Commit Message

Peter Xu Jan. 12, 2017, 3:36 a.m. UTC
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 run_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Jones Jan. 12, 2017, 11:42 a.m. UTC | #1
On Thu, Jan 12, 2017 at 11:36:20AM +0800, Peter Xu wrote:
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
>  run_tests.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/run_tests.sh b/run_tests.sh
> index 254129d..2cfa365 100755
> --- a/run_tests.sh
> +++ b/run_tests.sh
> @@ -41,7 +41,7 @@ while getopts "g:hv" opt; do
>              verbose="yes"
>              ;;
>          *)
> -            exit 1
> +            exit 2
>              ;;
>      esac
>  done
> -- 
> 2.7.4
> 
>

Reviewed-by: Andrew Jones <drjones@redhat.com>
diff mbox

Patch

diff --git a/run_tests.sh b/run_tests.sh
index 254129d..2cfa365 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -41,7 +41,7 @@  while getopts "g:hv" opt; do
             verbose="yes"
             ;;
         *)
-            exit 1
+            exit 2
             ;;
     esac
 done