mirror of
https://github.com/imjasonh/testscript-rs
synced 2026-07-16 12:12:07 +00:00
11 lines
370 B
Text
11 lines
370 B
Text
|
|
# Test network condition support
|
||
|
|
|
||
|
|
# This command will only run if network is available
|
||
|
|
[net] exec echo "Network is available"
|
||
|
|
|
||
|
|
# This command will only run if network is not available
|
||
|
|
[!net] exec echo "Network is not available"
|
||
|
|
|
||
|
|
# At least one of the above should execute, so we should see some output
|
||
|
|
exec echo "Network test completed"
|
||
|
|
stdout "Network test completed"
|