@@ -655,10 +655,10 @@ def test_grow_n_shrink_operations_trace_ds(ansible_zos_module, trace_destination
655
655
assert result .get ('new_free_space' ) >= result .get ('old_free_space' )
656
656
assert result .get ('space_type' ) == "k"
657
657
assert "Printing contents of table at address" in result .get ("stdout" )
658
- cmd = "dcat \" {0}\" " .format (trace_destination_ds )
658
+ cmd = "dcat \" {0}\" | wc -l " .format (trace_destination_ds )
659
659
output_of_trace_file = hosts .all .shell (cmd = cmd )
660
660
for out in output_of_trace_file .contacted .values ():
661
- assert out .get ("stdout" ) is not None
661
+ assert int ( out .get ("stdout" )) != 0
662
662
assert result .get ('stderr' ) == ""
663
663
assert result .get ('stderr_lines' ) == []
664
664
@@ -687,10 +687,10 @@ def test_grow_n_shrink_operations_trace_ds(ansible_zos_module, trace_destination
687
687
assert result .get ('new_free_space' ) <= result .get ('old_free_space' )
688
688
assert result .get ('space_type' ) == "k"
689
689
assert "print of in-memory trace table has completed" in result .get ('stdout' )
690
- cmd = "dcat \" {0}\" " .format (trace_destination_ds_s )
690
+ cmd = "dcat \" {0}\" | wc -l " .format (trace_destination_ds_s )
691
691
output_of_trace_file = hosts .all .shell (cmd = cmd )
692
692
for out in output_of_trace_file .contacted .values ():
693
- assert out .get ("stdout" ) is not None
693
+ assert int ( out .get ("stdout" )) != 0
694
694
assert result .get ('stderr' ) == ""
695
695
assert result .get ('stderr_lines' ) == []
696
696
@@ -736,10 +736,10 @@ def test_grow_n_shrink_operations_trace_ds_not_created(ansible_zos_module, trace
736
736
assert result .get ('new_free_space' ) >= result .get ('old_free_space' )
737
737
assert result .get ('space_type' ) == "k"
738
738
assert "Printing contents of table at address" in result .get ("stdout" )
739
- cmd = "dcat \" {0}\" " .format (trace_destination_ds )
739
+ cmd = "dcat \" {0}\" | wc -l " .format (trace_destination_ds )
740
740
output_of_trace_file = hosts .all .shell (cmd = cmd )
741
741
for out in output_of_trace_file .contacted .values ():
742
- assert out .get ("stdout" ) is not None
742
+ assert int ( out .get ("stdout" )) != 0
743
743
assert result .get ('stderr' ) == ""
744
744
assert result .get ('stderr_lines' ) == []
745
745
@@ -762,10 +762,10 @@ def test_grow_n_shrink_operations_trace_ds_not_created(ansible_zos_module, trace
762
762
assert result .get ('new_free_space' ) <= result .get ('old_free_space' )
763
763
assert result .get ('space_type' ) == "k"
764
764
assert "print of in-memory trace table has completed" in result .get ('stdout' )
765
- cmd = "dcat \" {0}\" " .format (trace_destination_ds_s )
765
+ cmd = "dcat \" {0}\" | wc -l " .format (trace_destination_ds_s )
766
766
output_of_trace_file = hosts .all .shell (cmd = cmd )
767
767
for out in output_of_trace_file .contacted .values ():
768
- assert out .get ("stdout" ) is not None
768
+ assert int ( out .get ("stdout" )) != 0
769
769
assert result .get ('stderr' ) == ""
770
770
assert result .get ('stderr_lines' ) == []
771
771
0 commit comments