test: test for restart and upgrade

This commit is contained in:
Rohit T P
2024-05-02 12:54:27 +00:00
parent 6610f30213
commit f179ecf325
4 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/expect -f
# Configure timeout for each expect command
set timeout 10
# Start your main script
spawn bash ../../noco.sh
expect "Do you want to reinstall NocoDB*"
send "N\r"
expect "Enter your choice: "
send "4\r"
expect "Enter your choice: "
send "0\r"
expect EOF

View File

@@ -0,0 +1,18 @@
#!/usr/bin/expect -f
# Configure timeout for each expect command
set timeout 10
# Start your main script
spawn bash ../../noco.sh
expect "Do you want to reinstall NocoDB*"
send "N\r"
expect "Enter your choice: "
send "5\r"
expect "Enter your choice: "
send "0\r"
expect EOF