Exemplo n.º 1
0
 def process(self):
     self.archive.close()
     self.buffer.close()
     upload = UefiUpload()
     upload.sign = FakeMethod()
     upload.process(self.pubconf, self.path, self.suite)
     return upload
Exemplo n.º 2
0
 def test_correct_signing_command(self):
     # getSigningCommand returns the correct command.
     self.setUpKeyAndCert()
     upload = UefiUpload()
     upload.setTargetDirectory(
         self.pubconf, "test_1.0_amd64.tar.gz", "distroseries")
     expected_command = [
         "sbsign", "--key", self.key, "--cert", self.cert, "t.efi"]
     self.assertEqual(expected_command, upload.getSigningCommand("t.efi"))