mirror of https://github.com/Qiskit/qiskit.git
Disable simulator tests so the stage1 of Travis can succeed.
If the binary is not found, then the test will skip in stage1, on later stages, there's a build step that will make travis fail if something is wrong.
This commit is contained in:
parent
c2b61426dc
commit
ee08d1bc4d
|
@ -39,10 +39,11 @@ EXTENSION = '.exe' if platform.system() == 'Windows' else ''
|
|||
DEFAULT_SIMULATOR_PATHS = [
|
||||
# This is the path where Makefile creates the simulator by default
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'../../out/src/qasm-simulator-cpp/qasm_simulator_cpp' + EXTENSION)),
|
||||
'../../out/src/qasm-simulator-cpp/qasm_simulator_cpp'
|
||||
+ EXTENSION)),
|
||||
# This is the path where PIP installs the simulator
|
||||
os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'qasm_simulator_cpp' + EXTENSION)),
|
||||
'qasm_simulator_cpp' + EXTENSION)),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -84,7 +84,11 @@ class TestLocalQasmSimulatorCpp(QiskitTestCase):
|
|||
backend='local_qiskit_simulator',
|
||||
preformatted=True)
|
||||
# Simulator backend
|
||||
self.backend = QasmSimulatorCpp.QasmSimulatorCpp()
|
||||
try:
|
||||
self.backend = QasmSimulatorCpp.QasmSimulatorCpp()
|
||||
except FileNotFoundError as fnferr:
|
||||
raise unittest.SkipTest(
|
||||
'cannot find {} in path'.format(fnferr))
|
||||
|
||||
def test_x90_coherent_error_matrix(self):
|
||||
X90 = np.array([[1, -1j], [-1j, 1]]) / np.sqrt(2)
|
||||
|
|
Loading…
Reference in New Issue