(self)
| 82 | |
| 83 | #执行命令 python volpro.py [imagename] (profile) (dumpfiles) |
| 84 | def run(self): |
| 85 | if self.ui.lineEdit.text() == "": |
| 86 | # 弹出错误提示 |
| 87 | self.ui.lineEdit.setStyleSheet("border: 1px solid red;") |
| 88 | return |
| 89 | |
| 90 | imagename = self.ui.lineEdit.text() |
| 91 | profile = self.ui.comboBox.currentText() |
| 92 | dumpfiles = self.ui.lineEdit_2.text() |
| 93 | if self.ui.lineEdit_2.text() == "": |
| 94 | command = f"python volpro.py {imagename} {profile}" |
| 95 | else: |
| 96 | dumpfiles = self.ui.lineEdit_2.text() |
| 97 | command = f"python volpro.py {imagename} {profile} dumpfiles {dumpfiles}" |
| 98 | subprocess.Popen(command, shell=True) |
| 99 | |
| 100 | #self.close() |
| 101 | def run2(self): |
| 102 | if self.ui.lineEdit.text() == "": |
| 103 | # 弹出错误提示 |
no outgoing calls
no test coverage detected