All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?= <antti.kaijanmaki@canonical.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/2] Allow users to specify dbus name replacement behaviour.
Date: Thu, 03 Apr 2014 12:41:41 +0300	[thread overview]
Message-ID: <533D2CD5.8010809@canonical.com> (raw)
In-Reply-To: <533D0FEB.1080101@canonical.com>

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

On 03.04.2014 10:38, Jussi Pakkanen wrote:
> On 02.04.2014 21:39, Marcel Holtmann wrote:
> 
>>> In testing it is sometimes useful to be able to replace the system
>>> ofono daemon instance with our own. This patch makes this possible
>>> using dbus' name replacement feature. This patch has the plumbing
>>> changes to make it possible to set the name replacement settings.
>>> The next patch allows you to set these parameters from the command
>>> line. The default behaviour does not change, i.e. the service name
>>> is not replaceable and the daemon will not try to replace an
>>> existing ofono instance.
>>
>> what is this useful for. We have been running oFono for more than 4
>> years and BlueZ with D-Bus for over 10 years and never had the need
>> for doing this. So I do not understand why we would support this.
> 
> This helps in an issue that comes up in system-wide automated testing.
> There are some tests that we want to run different ofono instances. All
> these tests need to run in the same instance and without root
> privileges. The normal approach would be to run the tests under a
> private dbus session. However this becomes problematic when the thing we
> are testing requires other services that are only provided by the real
> system bus. Permitting name transfer allows us to replace only the ofono
> instance and do so without root privileges (installing a custom dbus
> conf file that permits name replacement during testing is straightforward).


Indeed, and this combined with commit 5f765259 one can easily run a
series of tests (let's say dialer UI, messaging..) with different
phonesim configurations changing the number of modems and phonesim .xml
files for each modem.


 -- Antti


  reply	other threads:[~2014-04-03  9:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 13:56 [PATCH 1/2] Allow users to specify dbus name replacement behaviour jussi.pakkanen
2014-04-02 13:56 ` [PATCH 2/2] Can set name replacement with command line arguments jussi.pakkanen
2014-04-02 18:39 ` [PATCH 1/2] Allow users to specify dbus name replacement behaviour Marcel Holtmann
2014-04-03  7:38   ` Jussi Pakkanen
2014-04-03  9:41     ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?= [this message]
2014-04-03 17:55       ` Marcel Holtmann
2014-04-03 23:45         ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-04  0:09           ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-04  0:13             ` Denis Kenzior
2014-04-04  0:11           ` Denis Kenzior
2014-04-04  0:50             ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-03 21:40       ` Denis Kenzior
2014-04-04  0:00         ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-04  0:22         ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-04  0:25           ` Denis Kenzior
2014-04-04  1:16             ` Antti =?unknown-8bit?q?Kaijanm=C3=A4ki?=
2014-04-03 17:50     ` Marcel Holtmann

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=533D2CD5.8010809@canonical.com \
    --to=antti.kaijanmaki@canonical.com \
    --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.