Merge pull request #152458 from alyssais/vmTools-test
vmTools/test: fix
This commit is contained in:
commit
2b91ac56ad
|
@ -510,8 +510,7 @@ rec {
|
|||
tarball must contain an RPM specfile. */
|
||||
|
||||
buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
|
||||
prePhases = [ pkgs.prepareImagePhase pkgs.sysInfoPhase ];
|
||||
dontUnpack = true;
|
||||
prePhases = [ "prepareImagePhase" "sysInfoPhase" ];
|
||||
dontConfigure = true;
|
||||
|
||||
outDir = "rpms/${attrs.diskImage.name}";
|
||||
|
@ -536,9 +535,7 @@ rec {
|
|||
buildPhase = ''
|
||||
eval "$preBuild"
|
||||
|
||||
# Hacky: RPM looks for <basename>.spec inside the tarball, so
|
||||
# strip off the hash.
|
||||
srcName="$(stripHash "$src")"
|
||||
srcName="$(rpmspec --srpm -q --qf '%{source}' *.spec)"
|
||||
cp "$src" "$srcName" # `ln' doesn't work always work: RPM requires that the file is owned by root
|
||||
|
||||
export HOME=/tmp/home
|
||||
|
|
|
@ -9,20 +9,23 @@ with vmTools;
|
|||
|
||||
buildHelloInVM = runInLinuxVM hello;
|
||||
|
||||
buildPanInVM = runInLinuxVM pan;
|
||||
buildPcmanrmInVM = runInLinuxVM (pcmanfm.overrideAttrs (old: {
|
||||
# goes out-of-memory with many cores
|
||||
enableParallelBuilding = false;
|
||||
}));
|
||||
|
||||
|
||||
testRPMImage = makeImageTestScript diskImages.fedora16x86_64;
|
||||
testRPMImage = makeImageTestScript diskImages.fedora27x86_64;
|
||||
|
||||
|
||||
buildPatchelfRPM = buildRPM {
|
||||
name = "patchelf-rpm";
|
||||
src = patchelf.src;
|
||||
diskImage = diskImages.fedora16x86_64;
|
||||
diskImage = diskImages.fedora27x86_64;
|
||||
diskImageFormat = "qcow2";
|
||||
};
|
||||
|
||||
|
||||
testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386;
|
||||
testUbuntuImage = makeImageTestScript diskImages.ubuntu1804i386;
|
||||
|
||||
|
||||
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
|
||||
|
|
Loading…
Reference in a new issue