test/jdk/tools/jpackage/linux/base/Base.java
branchJDK-8200758-branch
changeset 57591 6805e0ef7453
parent 57543 bcd1ab268a7d
child 57910 28412b313c6b
equal deleted inserted replaced
57588:dac8f245de8e 57591:6805e0ef7453
    59     }
    59     }
    60 
    60 
    61     static String getRpmArch() throws Exception {
    61     static String getRpmArch() throws Exception {
    62         File out = File.createTempFile("rpmbuild", ".out");
    62         File out = File.createTempFile("rpmbuild", ".out");
    63         out.deleteOnExit();
    63         out.deleteOnExit();
    64         int code = JPackageHelper.execute(out, "rpmbuild", "-E=%{_target_cpu}");
    64         int code = JPackageHelper.execute(out, "rpmbuild", "--eval=%{_target_cpu}");
    65         if (code != 0) {
    65         if (code != 0) {
    66             throw new AssertionError("Error: unable to get rpm arch");
    66             throw new AssertionError("Error: unable to get rpm arch");
    67         }
    67         }
    68         return Files.readAllLines(out.toPath()).get(0);
    68         return Files.readAllLines(out.toPath()).get(0);
    69     }
    69     }