feat(conformance): skip incorrect tests (#3310)

Fixes https://github.com/filecoin-project/test-vectors/issues/72
This commit is contained in:
Alan Shaw 2020-08-26 11:45:34 +01:00 committed by GitHub
parent a03931daab
commit a89faa72ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -53,11 +53,10 @@ func (d *Driver) ExecuteMessage(msg *types.Message, preroot cid.Cid, bs blocksto
invoker := vm.NewInvoker()
// add support for the puppet and chaos actors.
selector := d.vector.Selector.Unpack()
if puppetOn, ok := selector["puppet_actor"]; ok && puppetOn == "true" {
if puppetOn, ok := d.vector.Selector["puppet_actor"]; ok && puppetOn == "true" {
invoker.Register(puppet.PuppetActorCodeID, puppet.Actor{}, puppet.State{})
}
if chaosOn, ok := selector["chaos_actor"]; ok && chaosOn == "true" {
if chaosOn, ok := d.vector.Selector["chaos_actor"]; ok && chaosOn == "true" {
invoker.Register(chaos.ChaosActorCodeCID, chaos.Actor{}, chaos.State{})
}

View File

@ -119,6 +119,13 @@ func TestConformance(t *testing.T) {
}
t.Run(v, func(t *testing.T) {
for _, h := range vector.Hints {
if h == schema.HintIncorrect {
t.Logf("skipping vector marked as incorrect: %s", vector.Meta.ID)
t.SkipNow()
}
}
// dispatch the execution depending on the vector class.
switch vector.Class {
case "message":

2
extern/test-vectors vendored

@ -1 +1 @@
Subproject commit 30e047041d46f2131881690b589ce57b093678a7
Subproject commit f1f9148102732cd8eb8949c17688d2b173975ff6