update go test

This commit is contained in:
Mahyar McDonald 2025-11-03 17:45:36 -08:00
parent d0bb53f685
commit 0f3356b902
2 changed files with 6 additions and 10 deletions

View file

@ -66,5 +66,5 @@ func TestNormalizedList_NoPackagesGiven_StderrsArgMismatch(t *testing.T) {
func TestNormalizedList_VirtualPackagesExists_StdoutsConcretePackage(t *testing.T) {
result := cmdtesting.New(t, createReplayLogs).Run("normalized-list", "libvips")
result.ExpectSuccessfulOut("libvips42=8.9.1-2")
result.ExpectSuccessfulOut("libvips42t64=8.16.0-2build1")
}

View file

@ -1,19 +1,15 @@
2025/03/15 22:29:14 Debug log created at /home/awalsh128/cache-apt-pkgs-action/src/cmd/apt_query/apt_query.log
2025/03/15 22:29:14 EXECUTION-OBJ-START
2025/11/03 17:44:59 Debug log created at /Users/mac/Documents/src/cache-apt-pkgs-action/src/cmd/apt_query/apt_query.log
2025/11/03 17:44:59 EXECUTION-OBJ-START
{
"Cmd": "apt-cache --quiet=0 --no-all-versions show libvips",
"Stdout": "",
"Stderr": "N: Can't select candidate version from package libvips as it has no candidate\nN: Can't select versions from package 'libvips' as it is purely virtual\nN: No packages found\n",
"CombinedOut": "N: Can't select candidate version from package libvips as it has no candidate\nN: Can't select versions from package 'libvips' as it is purely virtual\nN: No packages found\n",
"ExitCode": 0
}
EXECUTION-OBJ-END
2025/03/15 22:29:14 EXECUTION-OBJ-START
2025/11/03 17:44:59 EXECUTION-OBJ-START
{
"Cmd": "bash -c apt-cache showpkg libvips | grep -A 1 \"Reverse Provides\" | tail -1",
"Stdout": "libvips42 8.9.1-2 (= )\n",
"Stderr": "",
"CombinedOut": "libvips42 8.9.1-2 (= )\n",
"Cmd": "bash -c apt-cache showpkg libvips | grep -A 1 \"Reverse Provides\" | grep -v \"Reverse Provides\" | tail -1",
"CombinedOut": "libvips42t64 8.16.0-2build1 (= )\n",
"ExitCode": 0
}
EXECUTION-OBJ-END