We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e23e6 commit de17ea3Copy full SHA for de17ea3
1 file changed
tests/shell/047_absolute_path_modules.sh
@@ -1,10 +1,5 @@
1
-set -e
2
-set -x
3
-cd tests/
4
-mkdir -p ./tmp
5
-cd ./tmp/
6
-touch cfbs.json && rm cfbs.json
7
-rm -rf .git
+source "$(dirname "$0")/testlib.sh"
+test_init
8
9
cleanup() {
10
rm -rf /tmp/foo
@@ -29,7 +24,7 @@ cfbs --non-interactive init --masterfiles no
29
24
cfbs --non-interactive add /tmp/foo
30
25
cfbs build
31
26
32
-grep "$head_commit" cfbs.json
27
+assert_file_contains cfbs.json "$head_commit"
33
28
34
# Add second commit
35
cp ../sample/bar/baz/main.cf /tmp/foo/baz.cf
@@ -43,4 +38,6 @@ cd -
43
38
cfbs --non-interactive update
44
39
45
40
46
41
42
+
+test_finish
0 commit comments