Skip to content

Commit 82cc3d3

Browse files
committed
more expect refactoring
1 parent 69fcdeb commit 82cc3d3

15 files changed

Lines changed: 115 additions & 250 deletions

ci/expect_scripts/bytes-stdin-stdout.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ expect $expected_output {
2222
}
2323
}
2424

25-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
25+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2626
exit 1

ci/expect_scripts/command-line-args.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ expect $expected_output {
2222
}
2323
}
2424

25-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
25+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2626
exit 1

ci/expect_scripts/command.exp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ XYZ=ABC
2121
Yo
2222
}]
2323

24-
expect_with_diff $expected_output
24+
expect $expected_output {
25+
expect eof {
26+
check_exit_and_segfault
27+
}
28+
}
29+
30+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
31+
exit 1

ci/expect_scripts/env-var.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ expect $expected_output {
2424
}
2525
}
2626

27-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
27+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2828
exit 1

ci/expect_scripts/file-permissions.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ expect $expected_output {
2222
}
2323
}
2424

25-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
25+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2626
exit 1

ci/expect_scripts/file-read-write.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ expect $expected_output {
2121
}
2222
}
2323

24-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
24+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2525
exit 1

ci/expect_scripts/locale.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ expect -re $expected_output {
2121
}
2222
}
2323

24-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
24+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2525
exit 1

ci/expect_scripts/path-test.exp

Lines changed: 95 additions & 183 deletions
Large diffs are not rendered by default.

ci/expect_scripts/path.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ expect $expected_output {
2323
}
2424
}
2525

26-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
26+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2727
exit 1

ci/expect_scripts/print.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ expect $expected_output {
2323
}
2424
}
2525

26-
puts stderr "\nExpect script failed: output was different from expected value. uncomment `exp_internal 1` to debug."
26+
puts stderr "\nExpect script failed: output was not as expected. Diff the output with expected_output in this script. Alternatively, uncomment `exp_internal 1` to debug."
2727
exit 1

0 commit comments

Comments
 (0)