Bigtop
  1. Bigtop
  2. BIGTOP-1033

itest-common: fix debian install to avoid conffile prompt

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.7.0
    • Component/s: tests
    • Labels:
      None

      Description

      This issue pertains to bigtop-test-framework, not bigtop-tests.
      When running the package tests, specifically upgrade tests, on debian platforms, doing "env DEBIAN_FRONTEND=noninteractive apt-get -y install $

      {pkg.name}

      " is not enough. dpkg will prompt you as to what to do about conf files that have been modified, and the tests will fail because they don't respond to the prompts.

      According to http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/, you can use --force-conf* options; in particular

      --force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix. With this option alone, even configuration files that you have not modified are left untouched. You need to combine it with --force-confdef to let dpkg overwrite configuration files that you have not modified.

      1. BIGTOP-1033.diff
        0.9 kB
        Wing Yew Poon
      2. BIGTOP-1033.1.patch
        1 kB
        Wing Yew Poon

        Activity

        Hide
        Wing Yew Poon added a comment -

        Patch attached.

        Show
        Wing Yew Poon added a comment - Patch attached.
        Hide
        Mark Grover added a comment -

        Wing Yew Poon Thanks for the patch. While this looks good to me, may I request you to attach a patch created using git format-patch instead, please?

        Show
        Mark Grover added a comment - Wing Yew Poon Thanks for the patch. While this looks good to me, may I request you to attach a patch created using git format-patch instead , please?
        Hide
        Wing Yew Poon added a comment -

        New patch using git format-patch.

        Show
        Wing Yew Poon added a comment - New patch using git format-patch.
        Hide
        Mark Grover added a comment -

        +1

        Show
        Mark Grover added a comment - +1
        Hide
        Mark Grover added a comment -

        And, committed. Thanks, Wing Yew!

        Show
        Mark Grover added a comment - And, committed. Thanks, Wing Yew!

          People

          • Assignee:
            Wing Yew Poon
            Reporter:
            Wing Yew Poon
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development