Kaynağa Gözat

Have run_cavp.go create “resp” directories as needed.

Change-Id: Icb3003d71e3d61eb98fb8835bd567e383f22affc
Reviewed-on: https://boringssl-review.googlesource.com/17004
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
kris/onging/CECPQ3_patch15
Adam Langley 7 yıl önce
committed by CQ bot account: commit-bot@chromium.org
ebeveyn
işleme
e7d6988c25
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      fipstools/run_cavp.go

+ 5
- 1
fipstools/run_cavp.go Dosyayı Görüntüle

@@ -348,7 +348,11 @@ func doTest(suite *testSuite, test test) error {
args = append(args, test.args...)
args = append(args, filepath.Join(suite.getDirectory(), "req", test.inFile+".req"))

outPath := filepath.Join(suite.getDirectory(), "resp", test.inFile+".rsp")
respDir := filepath.Join(suite.getDirectory(), "resp")
if err := os.Mkdir(respDir, 0755); err != nil && !os.IsExist(err) {
return fmt.Errorf("cannot create resp directory: %s", err)
}
outPath := filepath.Join(respDir, test.inFile+".rsp")
outFile, err := os.OpenFile(outPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644)
if err != nil {
return fmt.Errorf("cannot open output file for %q %q: %s", suite.getDirectory(), test.inFile, err)


Yükleniyor…
İptal
Kaydet