test/infamy: reset between test cases using 'copy startup running'

This should copy factory running, instead of using the factory-reset RPC
but for now we use startup since 'factory' is not yet supported as a
copy-from target.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-22 00:12:43 +02:00
committed by Tobias Waldekranz
parent 52c2fe1e68
commit 2014c470cd
+1
View File
@@ -40,6 +40,7 @@ class Device(object):
self._ncc_init(location)
self._ly_init(yangdir)
# self.update_schema()
self.ncc.copy_config('running', 'startup')
def _ncc_init(self, location):
ai = socket.getaddrinfo(location.host, location.port,