mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-15 22:19:25 +00:00
Run tests in parallel and output github formats on workflow (#543)
* Run tests in parallel and output github formats on workflow Signed-off-by: Itxaka <itxaka@kairos.io> * Fix broken parallel tests We were using a fixed file for the tests which several tests could be accessing at the same time. This fixes it by setting a temp random file at the test start Signed-off-by: Itxaka <itxaka@kairos.io> * Fix the tests logging to stdout Signed-off-by: Itxaka <itxaka@kairos.io> * Drop the verbose Signed-off-by: Itxaka <itxaka@kairos.io> * Fix agent test Signed-off-by: Itxaka <itxaka@kairos.io> * Let the event consumer create the logfile or whatever Signed-off-by: Itxaka <itxaka@kairos.io> * Drop Focus Signed-off-by: Itxaka <itxaka@kairos.io> --------- Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
@@ -94,13 +94,15 @@ var _ = Describe("Install action tests", func() {
|
||||
})
|
||||
|
||||
Describe("Install Action", Label("install"), func() {
|
||||
var device, cmdFail string
|
||||
var device, cmdFail, tmpdir string
|
||||
var err error
|
||||
var spec *v1.InstallSpec
|
||||
var installer *action.InstallAction
|
||||
|
||||
BeforeEach(func() {
|
||||
device = "/tmp/test.img"
|
||||
tmpdir, err = os.MkdirTemp("", "install-*")
|
||||
Expect(err).Should(BeNil())
|
||||
device = filepath.Join(tmpdir, "test.img")
|
||||
Expect(os.RemoveAll(device)).Should(Succeed())
|
||||
// at least 2Gb in size as state is set to 1G
|
||||
_, err = diskfs.Create(device, 2*1024*1024*1024, diskfs.Raw, 512)
|
||||
@@ -201,6 +203,7 @@ var _ = Describe("Install action tests", func() {
|
||||
}
|
||||
Expect(os.RemoveAll(device)).ToNot(HaveOccurred())
|
||||
ghwTest.Clean()
|
||||
Expect(os.RemoveAll(tmpdir)).ToNot(HaveOccurred())
|
||||
})
|
||||
|
||||
It("Successfully installs", func() {
|
||||
|
Reference in New Issue
Block a user