From 67e7415f2feaac2f65c507be5c84585c677c6498 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 20 Nov 2019 08:58:50 -0800 Subject: [PATCH] Fix a bug with stashing original serial_term_prompt setting Whoops. Signed-off-by: Adam Williamson --- tests/_console_wait_login.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_console_wait_login.pm b/tests/_console_wait_login.pm index cbc8e8ad..e53da856 100644 --- a/tests/_console_wait_login.pm +++ b/tests/_console_wait_login.pm @@ -21,7 +21,7 @@ sub run { # do user login unless USER_LOGIN is set to string 'false' unless (get_var("USER_LOGIN") eq "false") { # this avoids us waiting 90 seconds for a # to show up - my $origprompt = $self->{serial_term_prompt}; + my $origprompt = $testapi::distri->{serial_term_prompt}; $testapi::distri->{serial_term_prompt} = '$ '; console_login(user=>get_var("USER_LOGIN", "test"), password=>get_var("USER_PASSWORD", "weakpassword")); $testapi::distri->{serial_term_prompt} = $origprompt;