Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1033

itest-common: fix debian install to avoid conffile prompt

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: