Merge lp:~le-chi-thu/lava-test/enabled-file-cache into lp:lava-test/0.0
Proposed by
Le Chi Thu
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 128 |
Merged at revision: | 126 |
Proposed branch: | lp:~le-chi-thu/lava-test/enabled-file-cache |
Merge into: | lp:lava-test/0.0 |
Diff against target: |
86 lines (+17/-13) 2 files modified
doc/changes.rst (+7/-0) lava_test/utils.py (+10/-13) |
To merge this branch: | bzr merge lp:~le-chi-thu/lava-test/enabled-file-cache |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Le Chi Thu (community) | Needs Resubmitting | ||
Review via email: mp+96015@code.launchpad.net |
Description of the change
When using out of tree tests in LAVA, the master image have network access and install the out-of-tree tests in form of json files. These files will be cached and when boot to test image, the cached file will be use and no network access is needed.
To post a comment you must log in.
21 - try: path.join( self.cache_ dir, key), mode) path.join( self.cache_ dir, key), mode)
22 - stream = open(os.
23 - yield stream
24 - finally:
25 - stream.close()
26
27 + stream = open(os.
28 + return stream
29 +
Why is this change needed?