test for previous commit
Add a test routine to test for --since option added to uptime in previous commit
This commit is contained in:
parent
a705fdcb15
commit
0e6e79522b
@ -6,3 +6,7 @@ set uptime "${topdir}uptime"
|
||||
set test "uptime"
|
||||
spawn $uptime
|
||||
expect_pass "$test" "^\\s+\\d{2}:\\d{2}:\\d{2} up (\\d+ days?,)?\\s*\\d+( min|:\\d+), +\\d+ users?, +load average: \[0-9.\]+, \[0-9.\]+, \[0-9.\]+\\s*$"
|
||||
|
||||
set test "uptime since option"
|
||||
spawn $uptime --since
|
||||
expect_pass "$test" "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\s*$"
|
||||
|
Loading…
Reference in New Issue
Block a user