MCPcopy Create free account
hub / github.com/ARMmbed/mbed-cli / cd

Function cd

test/util.py:48–54  ·  view source on GitHub ↗
(newdir)

Source from the content-addressed store, hash-verified

46# Directory navigation
47@contextlib.contextmanager
48def cd(newdir):
49 prevdir = os.getcwd()
50 os.chdir(newdir)
51 try:
52 yield
53 finally:
54 os.chdir(prevdir)
55
56# Handling test environment
57@pytest.fixture

Callers 11

test_removeFunction · 0.70
test_sync_updateFunction · 0.70
test_sync_update_removeFunction · 0.70
test_sync_update_addFunction · 0.70
test_sync_update_moveFunction · 0.70
mkgitFunction · 0.70
mkhgFunction · 0.70
assertlsFunction · 0.70
mkcommitFunction · 0.70
testreposFunction · 0.70
test_addFunction · 0.70

Calls

no outgoing calls

Tested by 6

test_removeFunction · 0.56
test_sync_updateFunction · 0.56
test_sync_update_removeFunction · 0.56
test_sync_update_addFunction · 0.56
test_sync_update_moveFunction · 0.56
test_addFunction · 0.56