From 8708dc8722bb72ad3c981281ef067f4ed5a601c8 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Fri, 6 Oct 2017 15:13:39 -0700 Subject: [PATCH] test: add lines-checked for update/rename test Since I changed check_lines() to propogate the matcher.awk exit status, this test failed due to a missing 'lines-checked' file. Add the file to fix that issue. Also, remove the -x and -v options to the shell invocation, because more lines of output are produced and that should not be checked. Signed-off-by: Patrick McCarty --- test/functional/update/rename/lines-checked | 17 +++++++++++++++++ test/functional/update/rename/test.bats | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 test/functional/update/rename/lines-checked diff --git a/test/functional/update/rename/lines-checked b/test/functional/update/rename/lines-checked new file mode 100644 index 00000000..49017f0d --- /dev/null +++ b/test/functional/update/rename/lines-checked @@ -0,0 +1,17 @@ +Update started. +Attempting to download version string to memory +Preparing to update from 10 to 20 +Extracting os-core pack for version 20 +Statistics for going from version 10 to version 20: + changed bundles : 1 + new bundles : 0 + deleted bundles : 0 + changed files : 1 + new files : 2 + deleted files : 2 +Starting download of remaining update content. This may take a while... +Finishing download of update content... +Staging file content +Applying update +Update was applied. +Update successful. System updated from version 10 to version 20 diff --git a/test/functional/update/rename/test.bats b/test/functional/update/rename/test.bats index 0f8d10ad..0e9fed88 100755 --- a/test/functional/update/rename/test.bats +++ b/test/functional/update/rename/test.bats @@ -26,7 +26,7 @@ teardown() { } @test "update simple rename" { - run sudo sh -xvc "$SWUPD update $SWUPD_OPTS" + run sudo sh -c "$SWUPD update $SWUPD_OPTS" check_lines "$output"