Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_uninstall.ps1 doesn't work #763

Closed
naacbin opened this issue Dec 1, 2023 · 2 comments
Closed

test_uninstall.ps1 doesn't work #763

naacbin opened this issue Dec 1, 2023 · 2 comments
Labels
🐛 bug Something isn't working

Comments

@naacbin
Copy link
Collaborator

naacbin commented Dec 1, 2023

What's the problem?

test_uninstall.ps1 doesn't uninstall any packages. Moreover, although the documentation indicates the possibility of uninstalling a specific package, the current script don't handle it.

I added the following parameters at the top of the file to remove package individually:

param ([string] $package_names=$null, [switch] $all)

Then, I changed $built_pkgs =... to $built_pkgs = $package_names. However, this isn't an optimal solution.

Steps to Reproduce

Run scripts/test/test_uninstall.ps1 with or without <package.vm> args.

Environment

VM OS version and Service Pack

Version : 10.0.22621
BuildNumber : 22621
OSArchitecture : 64-bit
ServicePackMajorVersion : 0
Caption : Microsoft Windows 11 Enterprise Evaluation

VM AV Details

AntiVirusProduct classname does not exist...

VM PowerShell Version

5.1.22621.1778

VM CLR Version

4.0.30319.42000

VM Chocolatey Version

2.2.2

VM Boxstarter Version

Boxstarter|3.0.3
Boxstarter.Bootstrapper|3.0.3
Boxstarter.Chocolatey|3.0.3
Boxstarter.Common|3.0.3
Boxstarter.HyperV|3.0.3
Boxstarter.WinConfig|3.0.3

Additional Information

No response

Detected by test suite

No

@naacbin naacbin added the 🐛 bug Something isn't working label Dec 1, 2023
@naacbin
Copy link
Collaborator Author

naacbin commented Jan 8, 2024

I've tested it with a new machine and it seems fine.

@naacbin naacbin closed this as completed Jan 8, 2024
@emtuls
Copy link
Member

emtuls commented Jan 17, 2024

I know this is closed, but I believe I ran into this issue when I was using test_uninstall.ps1 before, because a random folder named False was being created inside built_pkgs unintentionally somehow and when running this script, it would automatically fail and not uninstall my package.

This should hopefully be fixed from this PR: #839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants