cd refactoring
@@ -31,6 +31,8 @@ class Cd(GenericUnixCommand):
# command parameters
self.ret_required = False
+ self._re_expected_prompt = None
+ if expected_prompt:
self._re_expected_prompt = CommandTextualGeneric._calculate_prompt(expected_prompt) # Expected prompt on device
def build_command_string(self):
