Commit e03b037
committed
server: fix grep_log not finding string logged immediately before
Logs written by a test server go through a pipe and are processed by
a luatest fiber before they make it to the log file so if grep_log()
is called immediately after exec() that writes something to the log
it may fail to find the logged string. Let's fix this issue by writing
a unique marker string to the server log via exec() and retrying
grep_log() until we find the marker.
Closes #4211 parent 8306126 commit e03b037
2 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
899 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
900 | 910 | | |
| 911 | + | |
901 | 912 | | |
902 | 913 | | |
903 | 914 | | |
| |||
938 | 949 | | |
939 | 950 | | |
940 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
941 | 955 | | |
942 | 956 | | |
943 | 957 | | |
944 | 958 | | |
945 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
946 | 967 | | |
947 | 968 | | |
948 | 969 | | |
| |||
0 commit comments