Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: vpython/spec/spec_test.go

Issue 2905943002: [vpython] Incorporate interpreter path/hash. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vpython/spec/spec.go ('k') | vpython/venv/config.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/spec/spec_test.go
diff --git a/vpython/spec/spec_test.go b/vpython/spec/spec_test.go
index 7d33dbb6ef9e43c7761df58717d77cfbdd7ebc0f..af2505360253f9d1c1325a8645729ae0c3970e35 100644
--- a/vpython/spec/spec_test.go
+++ b/vpython/spec/spec_test.go
@@ -22,6 +22,7 @@ func TestNormalizeAndHash(t *testing.T) {
Convey(`Test manifest generation`, t, func() {
var spec vpython.Spec
+ var rt vpython.Runtime
Convey(`Will normalize an empty spec`, func() {
So(Normalize(&spec, pkgFoo), ShouldBeNil)
@@ -37,8 +38,8 @@ func TestNormalizeAndHash(t *testing.T) {
Wheel: []*vpython.Spec_Package{pkgBar, pkgBaz, pkgFoo},
})
- So(Hash(&spec, ""), ShouldEqual, "b4221081c43e8319ceb71a2e9d3bd83701b726a0976380feac4d04825226f935")
- So(Hash(&spec, "extra"), ShouldEqual, "01a8d5f5a6f7b2cd91ce6f2b5fefb931828e28b90d0fb07a271597eaa4f6c547")
+ So(Hash(&spec, &rt, ""), ShouldEqual, "7e80b8643051ce0d82bf44fb180687e988791cfd7f3da39861370f0a56fc80f8")
+ So(Hash(&spec, &rt, "extra"), ShouldEqual, "140a02bb88b011d4aceafb9533266288fd4b441c3bdb70494419b3ef76457f34")
})
Convey(`Will fail to normalize if there are duplicate wheels.`, func() {
« no previous file with comments | « vpython/spec/spec.go ('k') | vpython/venv/config.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698