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

itest-common: fix debian install to avoid conffile prompt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • tests
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: