From e227b7e1408b88980a649e710c7b112d8d2f63bc Mon Sep 17 00:00:00 2001 From: Fedor Korotkiy Date: Thu, 13 Feb 2020 02:31:40 +0300 Subject: [PATCH] Fix --- tools/testtool/commands/test_submission.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testtool/commands/test_submission.go b/tools/testtool/commands/test_submission.go index 611264f..f3c1cab 100644 --- a/tools/testtool/commands/test_submission.go +++ b/tools/testtool/commands/test_submission.go @@ -178,7 +178,7 @@ type TestFailedError struct { } func (e *TestFailedError) Error() string { - return fmt.Sprintf("test failed: %v", e) + return fmt.Sprintf("test failed: %v", e.E) } func (e *TestFailedError) Unwrap() error { @@ -209,7 +209,7 @@ func runTests(testDir, problem string) error { binaries := map[string]string{} testBinaries := map[string]string{} - binPkgs, testPkgs := listTestsAndBinaries(testDir, []string{"-tags", "private", "-mod", "readonly"}) + binPkgs, testPkgs := listTestsAndBinaries(filepath.Join(testDir, problem), []string{"-tags", "private", "-mod", "readonly"}) for binaryPkg := range binPkgs { binPath := filepath.Join(binCache, randomName()) binaries[binaryPkg] = binPath