________________________________ test_gdb_info _________________________________
@platform_skip
@gdb_unavailable_skip
@softioc_unavailable_skip
def test_gdb_info():
md = IocMetadata(binary=str(softioc))
async def inner() -> Optional[GdbBinaryInfo]:
return await md.get_binary_information()
loop = asyncio.get_event_loop()
info = loop.run_until_complete(inner())
assert info is not None, "Script appears to have failed"
print("Got information", info)
> assert len(md.variables)
E AssertionError: assert 0
E + where 0 = len({})
E + where {} = IocMetadata(name='unset', script=PosixPath('.'), startup_directory=PosixPath('.'), host=None, port=None, binary='/reg/...egisterRecordDeviceDriver.cpp': '8c8fa6c8de3f0f6bdbf9bb227c678070f5311606e7b8e9899b8932c3564a7f32'}, load_success=True).variables
whatrecord/tests/test_gdb_integration.py:47: AssertionError
Expected Behavior
Tests should have parity on the TravisCI and when run locally at LCLS.
Current Behavior
The gdb test fails when run on psbuild-rhel7, see https://github.com/pcdshub/pcds-envs/issues/253
Details
Possible Solution
Idk, it might be a server configuration issue
Steps to Reproduce (for bugs)
Context
This adds some noise to the pcds-envs unit testing suite.
Your Environment
pcds-5.5.0