def test_fileloc_success(self): self.setup_step(rpmlint.RpmLint(fileloc='RESULT')) self.expect_commands( ExpectShell(workdir='wkdir', command=['rpmlint', '-i', 'RESULT']).exit(0)) self.expect_outcome(result=SUCCESS) return self.run_step()
def test_success(self): self.setupStep(rpmlint.RpmLint()) self.expectCommands( ExpectShell(workdir='wkdir', command=['rpmlint', '-i', '.']) + 0) self.expectOutcome(result=SUCCESS, state_string='Finished checking RPM/SPEC issues') return self.runStep()
def test_config_success(self): self.setupStep(rpmlint.RpmLint(config='foo.cfg')) self.expectCommands( ExpectShell(workdir='wkdir', command=['rpmlint', '-i', '-f', 'foo.cfg', '.']) + 0) self.expectOutcome(result=SUCCESS) return self.runStep()
def test_fileloc_success(self): self.setupStep(rpmlint.RpmLint(fileloc='RESULT')) self.expectCommands( ExpectShell(workdir='wkdir', usePTY='slave-config', command=['rpmlint', '-i', 'RESULT']) + 0) self.expectOutcome(result=SUCCESS) return self.runStep()
def test_config_success(self): self.setupStep(rpmlint.RpmLint(config='foo.cfg')) self.expectCommands( ExpectShell(workdir='wkdir', usePTY='slave-config', command=['rpmlint', '-i', '-f', 'foo.cfg', '.']) + 0) self.expectOutcome(result=SUCCESS, status_text=['Finished checking RPM/SPEC issues']) return self.runStep()