- job-template:
    name: 'gate-dib-dsvm-functests-{node}'
    node: '{node}'

    builders:
      - gerrit-git-prep
      - shell: |
          #!/bin/bash -eux
          sudo apt-get install -y qemu-utils || sudo yum -y install qemu-img
          git clone https://git.openstack.org/openstack/dib-utils ../dib-utils
          export PATH=$PATH:$(pwd)/bin
          export PATH=$PATH:$(pwd)/../dib-utils/bin
          ./tests/run_functests.sh

    publishers:
      - console-log

- job-template:
    name: 'gate-dib-dsvm-functests-{node}'
    node: '{node}'

    builders:
      - gerrit-git-prep
      - shell: |
          #!/bin/bash -eux
          sudo apt-get install -y qemu-utils kpartx || sudo yum -y install qemu-img kpartx
          git clone https://git.openstack.org/openstack/dib-utils ../dib-utils
          export PATH=$PATH:$(pwd)/bin
          export PATH=$PATH:$(pwd)/../dib-utils/bin
          ./tests/run_functests.sh

    publishers:
      - console-log

Install kpartx for DIB tests
Install kpartx for DIB tests

diskimage-builder depends on kpartx, install it.

Change-Id: I141df7ca3a08cea6851676fb6c3c6c734c746e13
