← Back to team overview

touch-packages team mailing list archive

[Bug 1364327] Re: Title: Custom prefix/postfix to the generated click chroots

 

Looking through the code for click chroot, I see that the ClickChroot
class constructor already takes a name= keyword argument, which defaults
to "click", and is used to form the first part of the full chroot name.
Right now this is unused, but it could easily be exposed by way of a new
command-line option.  I would prefer this over creating a new mechanism.

Would you be content if "click chroot -a armhf -f ubuntu-sdk-14.10
--name test1234 create" etc. worked?  You could then make your scripts
that call "click chroot" honour an environment variable if that's easier
to coordinate at the top level.

** Changed in: click (Ubuntu)
       Status: New => Incomplete

** Changed in: click (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1364327

Title:
  Title: Custom prefix/postfix to the generated click chroots

Status in “click” package in Ubuntu:
  Incomplete

Bug description:
  Testing the click chroot operations are the part of the Ubuntu SDK
  test plan.

  According to the test plan we should be able to create, use  and
  destroy click chroots on the host without conflicting with the already
  set up and used click croots. Also the tests should use clean click
  chroots as the existing chroots might be outdated or modified.

  For that we need a CLICK_CHROOT_SUFFIX variable.  The click tools
  should use that suffix for all click chroot operation.

  For example when the CLICK_CHROOT_SUFFIX=_test1234 is set the

  $ click chroot -a armhf -f ubuntu-sdk-14.10 create

  command should create /var/lib/schroot/chroots/click-ubuntu-
  sdk-14.10-armhf_test1234 and the

  $ click chroot -a armhf -f ubuntu-sdk-14.10 run

  command should use the /var/lib/schroot/chroots/click-ubuntu-
  sdk-14.10-armhf_test1234 chroot.

  
  With this feature the Ubuntu SDK test suite just need to set the CLICK_CHROOT_SUFFIX= and carry on with the tests.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1364327/+subscriptions


References