Commit 3657e9c
authored
Use tmp file in unit-tests to allow for testing portability (#85)
Description of changes:
Unit tests fail when not using GNU sed this is because command uses `sed -i` which when not using GNU sed needs to specify a string afterwards which can be defaulted to `sed -i ''` However when attempting this allows for the unit-tests to pass but it created tmp files on my end with suffix ''. Ended up creating .tmp files initially and then removing them, this is consistent with the GNU internal implementation. https://www.gnu.org/software/sed/manual/sed.html#index-_002di
> GNU sed does this by creating a temporary file and sending output to this file rather than to the standard output
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.1 parent 3275772 commit 3657e9c
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
| |||
0 commit comments