Merge pull request #92 from cyphar/more-test-debug-output
test: add more debugging output
This commit is contained in:
commit
3cb2424c6f
3 changed files with 11 additions and 5 deletions
|
@ -14,8 +14,8 @@ function teardown() {
|
||||||
|
|
||||||
start_ocid
|
start_ocid
|
||||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
pod_id="$output"
|
pod_id="$output"
|
||||||
run ocic ctr create --config "$TESTDATA"/container_redis.json --pod "$pod_id"
|
run ocic ctr create --config "$TESTDATA"/container_redis.json --pod "$pod_id"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
@ -45,8 +45,8 @@ function teardown() {
|
||||||
|
|
||||||
start_ocid
|
start_ocid
|
||||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
pod_id="$output"
|
pod_id="$output"
|
||||||
run ocic pod list
|
run ocic pod list
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
|
|
@ -15,20 +15,25 @@ function teardown() {
|
||||||
|
|
||||||
start_ocid
|
start_ocid
|
||||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
id="$output"
|
id="$output"
|
||||||
run ocic pod stop --id "$id"
|
run ocic pod stop --id "$id"
|
||||||
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
echo "$output"
|
||||||
run ocic pod remove --id "$id"
|
run ocic pod remove --id "$id"
|
||||||
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
id="$output"
|
id="$output"
|
||||||
run ocic pod stop --id "$id"
|
run ocic pod stop --id "$id"
|
||||||
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
run ocic pod remove --id "$id"
|
run ocic pod remove --id "$id"
|
||||||
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
stop_ocid
|
stop_ocid
|
||||||
cleanup_pods
|
cleanup_pods
|
||||||
|
@ -42,8 +47,8 @@ function teardown() {
|
||||||
|
|
||||||
start_ocid
|
start_ocid
|
||||||
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
run ocic pod create --config "$TESTDATA"/sandbox_config.json
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
pod_id="$output"
|
pod_id="$output"
|
||||||
run ocic ctr create --config "$TESTDATA"/container_redis.json --pod "$pod_id"
|
run ocic ctr create --config "$TESTDATA"/container_redis.json --pod "$pod_id"
|
||||||
echo "$output"
|
echo "$output"
|
||||||
|
|
|
@ -9,6 +9,7 @@ function teardown() {
|
||||||
@test "ocic runtimeversion" {
|
@test "ocic runtimeversion" {
|
||||||
start_ocid
|
start_ocid
|
||||||
ocic runtimeversion
|
ocic runtimeversion
|
||||||
|
echo "$output"
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
stop_ocid
|
stop_ocid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue