All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH] test: add change-pin test case
Date: Tue, 11 Jan 2011 10:23:09 -0800	[thread overview]
Message-ID: <1294770189.3873.29.camel@aeonflux> (raw)
In-Reply-To: <20A4FB08D632914F9C09B9F05CBDF258192D753023@EXMB02.eu.tieto.com>

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

Hi Jussi,

>  Makefile.am     |    3 ++-
>  test/change-pin |   29 +++++++++++++++++++++++++++++
>  2 files changed, 31 insertions(+), 1 deletions(-)
>  create mode 100755 test/change-pin
> 
> diff --git a/Makefile.am b/Makefile.am
> index cc30624..4c9add4 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -446,7 +446,8 @@ test_scripts = test/backtrace \
>          test/set-tty \
>          test/set-gsm-band \
>          test/set-umts-band \
> -        test/lockdown-modem
> +        test/lockdown-modem \
> +        test/change-pin
>  
>  if TEST
>  testdir = $(pkglibdir)/test
> diff --git a/test/change-pin b/test/change-pin new file mode 100755 index 0000000..a2444d6
> --- /dev/null
> +++ b/test/change-pin
> @@ -0,0 +1,29 @@
> +#!/usr/bin/python
> +
> +import dbus
> +import sys
> +
> +bus = dbus.SystemBus()
> +
> +if len(sys.argv) == 5:
> +    path = sys.argv[1]
> +    pin_type = sys.argv[2]
> +    orig_pin = sys.argv[3]
> +    new_pin = sys.argv[4]

I know that we are not really strict with any coding style in the test
scripts, but at least try to follow the using tabs rule ;)

Regards

Marcel



      reply	other threads:[~2011-01-11 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11 12:17 [PATCH] test: add change-pin test case Jussi.Kangas
2011-01-11 18:23 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1294770189.3873.29.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.