From 3c895f8e020515f58b5333b453f3b566e9678807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Tue, 16 Mar 2021 14:53:12 +0100 Subject: [PATCH] oof --- plab/tests/runtest.go | 5 ++++- plab/tests/testsToLatex.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plab/tests/runtest.go b/plab/tests/runtest.go index 2582245..829a60a 100644 --- a/plab/tests/runtest.go +++ b/plab/tests/runtest.go @@ -5,11 +5,14 @@ import ( "io" "os" "os/exec" + "path/filepath" ) func runTest(name string) error { fmt.Println(name) - cmd := exec.Command("java", "-jar", "../src/projlab.jar") + cmd := exec.Command("java", "-jar", "src/projlab.jar") + var err error + cmd.Dir, err = filepath.Abs("..") file, err := os.Open(name) if err != nil { return err diff --git a/plab/tests/testsToLatex.go b/plab/tests/testsToLatex.go index 653c1eb..0eb2a77 100644 --- a/plab/tests/testsToLatex.go +++ b/plab/tests/testsToLatex.go @@ -45,7 +45,7 @@ var TestsToLatex = helpers.Subcommand{ buf.WriteString(` \begin{figure}[H] \begin{center} - \resizebox*{!}{\textheight-2cm}{`) + \resizebox{\textwidth}{\textheight-2cm}{`) buf.Write(b) buf.WriteString(` } -- GitLab