Skip to content

Commit

Permalink
Update test scenario to test file hashes
Browse files Browse the repository at this point in the history
It is a simple test scenario which tries to modify a doc file to hit a
RPM integrity issue. Specially in containers the number of packages
tends to be very small and not always there is a TODO file. So it was
also included a README file in the search, which is more common. The
test scenario could also ensure a package is installed but this would
make the test scenario longer than necessary.
  • Loading branch information
marcusburghardt committed Dec 5, 2023
1 parent 93d720a commit 1a91385
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash
#

# find all TODO files in /usr/share/doc and get first of them
todo_file=$(find /usr/share/doc -name TODO | head -n 1)
todo_file=$(find /usr/share/doc -name TODO -o -name README | head -n 1)

# append space to that file, so it will change digest
echo " " >> $todo_file

0 comments on commit 1a91385

Please sign in to comment.