os: add input_password(prompt) and unit tests (#15507)

This commit is contained in:
Subhomoy Haldar 2022-08-23 20:47:38 +05:30 committed by GitHub
parent d08edf8cba
commit 3b42f18dee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 111 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#!/usr/bin/expect
spawn ./password
expect "Enter your password : "
send "Sample123\r"
expect "Confirm password : "
send "Sample234\r"
expect "Passwords do not match ."
expect eof