File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
test :
13
- # We use older Ubuntu for now to avoid warning from newer OpenSSL (#55)
14
- # which break output expectations in some (fragile) tests
15
- runs-on : ubuntu-16.04
13
+ # Test on older Ubuntu with OpenSSL < 1.1 and newer with OpenSSL >= 1.1
14
+ runs-on : [ubuntu-16.04, ubuntu-18.04]
16
15
17
16
steps :
18
17
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ load $BATS_TEST_DIRNAME/_test_helper.bash
86
86
87
87
run git merge branch-2
88
88
[ " $status " -ne 0 ]
89
- [ " ${lines[1] } " = " CONFLICT (content): Merge conflict in sensitive_file" ]
89
+ [[ " ${output } " = * " CONFLICT (content): Merge conflict in sensitive_file" * ] ]
90
90
91
91
run cat sensitive_file
92
92
[ " $status " -eq 0 ]
Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ load $BATS_TEST_DIRNAME/_test_helper.bash
44
44
# an encrypted file
45
45
run git commit -m " Added more"
46
46
[ " $status " -ne 0 ]
47
- [ " ${lines[0] } " = " Transcrypt managed file is not encrypted in the Git index: sensitive_file" ]
48
- [ " ${lines[1] } " = " You probably staged this file using a tool that does not apply .gitattribute filters as required by Transcrypt." ]
49
- [ " ${lines[2] } " = " Fix this by re-staging the file with a compatible tool or with Git on the command line:" ]
50
- [ " ${lines[3] } " = " git reset -- sensitive_file" ]
51
- [ " ${lines[4] } " = " git add sensitive_file" ]
47
+ [[ " ${output } " = * " Transcrypt managed file is not encrypted in the Git index: sensitive_file" * ] ]
48
+ [[ " ${output } " = * " You probably staged this file using a tool that does not apply .gitattribute filters as required by Transcrypt." * ] ]
49
+ [[ " ${output } " = * " Fix this by re-staging the file with a compatible tool or with Git on the command line:" * ] ]
50
+ [[ " ${output } " = * " git reset -- sensitive_file" * ] ]
51
+ [[ " ${output } " = * " git add sensitive_file" * ] ]
52
52
}
53
53
54
54
@test " pre-commit: warn and don't clobber existing pre-commit hook on init" {
You can’t perform that action at this time.
0 commit comments