Skip to content

Commit de17ea3

Browse files
larsewiclaude
andcommitted
Migrated 047_absolute_path_modules.sh to testlib.sh
Ticket: ENT-13699 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 99e23e6 commit de17ea3

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

tests/shell/047_absolute_path_modules.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1+
source "$(dirname "$0")/testlib.sh"
2+
test_init
83

94
cleanup() {
105
rm -rf /tmp/foo
@@ -29,7 +24,7 @@ cfbs --non-interactive init --masterfiles no
2924
cfbs --non-interactive add /tmp/foo
3025
cfbs build
3126

32-
grep "$head_commit" cfbs.json
27+
assert_file_contains cfbs.json "$head_commit"
3328

3429
# Add second commit
3530
cp ../sample/bar/baz/main.cf /tmp/foo/baz.cf
@@ -43,4 +38,6 @@ cd -
4338
cfbs --non-interactive update
4439
cfbs build
4540

46-
grep "$head_commit" cfbs.json
41+
assert_file_contains cfbs.json "$head_commit"
42+
43+
test_finish

0 commit comments

Comments
 (0)