Add "Applying update" print as a progress header

Since this step can take a while print a header to give an indication of
what the progress percentage is tracking. Update functional tests to
include new output.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2017-08-17 15:37:15 -07:00
parent 407767cc71
commit d274f3aede
15 changed files with 16 additions and 0 deletions
+1
View File
@@ -177,6 +177,7 @@ TRY_DOWNLOAD:
sync();
/* rename to apply update */
printf("Applying update\n");
ret = rename_all_files_to_final(updates);
if (ret != 0) {
return ret;
@@ -12,5 +12,6 @@ Statistics for going from version 10 to version 100:
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 100
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /usr/lib/kernel/testfile was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
1 files were not in a pack
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /os-core was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 20 to version 30
2 files were not in a pack
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /os-core was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
3 files were not in a pack
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /usr/bin was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
8 files were not in a pack
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /os-core was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
1 files were not in a pack
@@ -12,5 +12,6 @@ Statistics for going from version 20 to version 30:
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 20 to version 30
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /usr/bin was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 20
2 files were not in a pack
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /usr/bin was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 20
3 files were not in a pack
@@ -29,6 +30,7 @@ Starting download of remaining update content. This may take a while...
File /usr/lib/os-release was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 100 to version 110
1 files were not in a pack
@@ -11,5 +11,6 @@ Statistics for going from version 10 to version 100:
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 100
@@ -12,6 +12,7 @@ Starting download of remaining update content. This may take a while...
File /usr/bin was not in a pack
Finishing download of update content...
Staging file content
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
1 files were not in a pack
@@ -12,5 +12,6 @@ Statistics for going from version 10 to version 100:
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 100
@@ -15,6 +15,7 @@ Staging file content
REGEXP:^Update target directory does not exist: .*/target-dir/usr/bin. Trying to fix it$
Hash did not match for path : /usr
Path /usr/bin is missing on the file system
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
1 files were not in a pack
@@ -14,6 +14,7 @@ Finishing download of update content...
Staging file content
REGEXP:^Update target directory does not exist: .*/target-dir/usr/bin. Trying to fix it$
Path /usr/bin is missing on the file system
Applying update
Update was applied.
Update successful. System updated from version 10 to version 100
1 files were not in a pack