Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
Commitf664a0b
committed
Add xfail marks to hook tests for WinBashStatus.Absent
Precise xfail marks were added to commit hook tests in#1745, butin a few tests I didn't get it right for WinBashStatus.Absent. Thatis, on a Windows system that has no bash.exe at all:- More of the tests are unable to pass than have xfail marks.- One of the tests, test_commit_msg_hook_success, which does have an xfail mark for that, wrongly combines it with the xfail mark for WinBashStatus.Wsl. That test is the only one where the WSL bash.exe, even when a working WSL distribution is installed, is unable to pass. But using a single mark there is wrong, in part because the "reason" is not correct for both, but even more so because the exceptions they raise are different: AssertionError is raised when the WSL bash.exe is used in that test, but when bash.exe is altogether absent, HookExecutionError is raised.This fixes that by adding xfail marks for WinBashStatus.Absentwhere missing, and splitting test_commit_msg_hook_success's xfailmark that unsuccessfully tried to cover two conditions into twoseparate marks, each of which gives a correct reason and exception.This commit also rewords the xfail reason given for WslNoDistro,which was somewhat unclear and potentially ambiguous, to make itclearer.1 parent4023f28 commitf664a0b
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
991 | 991 |
| |
992 | 992 |
| |
993 | 993 |
| |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
994 | 999 |
| |
995 | 1000 |
| |
996 |
| - | |
| 1001 | + | |
997 | 1002 |
| |
998 | 1003 |
| |
999 | 1004 |
| |
| |||
1004 | 1009 |
| |
1005 | 1010 |
| |
1006 | 1011 |
| |
1007 |
| - | |
| 1012 | + | |
1008 | 1013 |
| |
1009 | 1014 |
| |
1010 | 1015 |
| |
| |||
1030 | 1035 |
| |
1031 | 1036 |
| |
1032 | 1037 |
| |
1033 |
| - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1034 | 1044 |
| |
1035 | 1045 |
| |
1036 | 1046 |
| |
1037 | 1047 |
| |
1038 | 1048 |
| |
1039 |
| - | |
| 1049 | + | |
1040 | 1050 |
| |
1041 | 1051 |
| |
1042 | 1052 |
| |
| |||
1054 | 1064 |
| |
1055 | 1065 |
| |
1056 | 1066 |
| |
1057 |
| - | |
| 1067 | + | |
1058 | 1068 |
| |
1059 | 1069 |
| |
1060 | 1070 |
| |
|
0 commit comments
Comments
(0)