Skip to content

Conversation

@woky
Copy link
Contributor

@woky woky commented Jun 21, 2023

Currently the slicer test defines one archive named "ubuntu" for all
test cases no matter what they define in chisel.yaml. But since commit
afad3d2 we allow more archives with different names to be defined in
chisel.yaml. Define a test archive for each of them.

Currently the slicer test defines one archive named "ubuntu" for all
test cases no matter what they define in chisel.yaml. But since commit
afad3d2 we allow more archives with different names to be defined in
chisel.yaml. Define a test archive for each of them.
@woky woky added the Priority Look at me first label Jun 21, 2023
@cjdcordeiro cjdcordeiro removed the Priority Look at me first label Jun 22, 2023
@woky woky added Priority Look at me first and removed Priority Look at me first labels Aug 15, 2023
@cjdcordeiro cjdcordeiro added the Simple Nice for a quick look on a minute or two label Aug 22, 2023
@cjdcordeiro cjdcordeiro requested review from rebornplusplus and removed request for rebornplusplus August 23, 2023 17:08
Copy link

@rebornplusplus rebornplusplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! ✔️

result: map[string]string{
"/usr/": "dir 0755",
"/usr/bin/": "dir 0755",
"/usr/bin/hello": "file 0775 eaf29575",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, how did you know the checksum of the /usr/bin/hello here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same file from the embedded base-files package, so I've just copied it from the result maps from earlier test cases.

Copy link
Contributor

@niemeyer niemeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been a while so it's unclear to me how the default archive logic is mixing with the most recent package version logic. With that said, this PR is simply improving tests, so it can only be a good thing so I'm merging it. Let's please sync about this in a future conversation.

@niemeyer niemeyer merged commit 0f94f2c into canonical:main Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority Look at me first Simple Nice for a quick look on a minute or two

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants