Skip to content
Snippets Groups Projects
Verified Commit 3c895f8e authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

oof

parent 298aa3c8
No related branches found
No related tags found
No related merge requests found
Pipeline #6802 passed
...@@ -5,11 +5,14 @@ import ( ...@@ -5,11 +5,14 @@ import (
"io" "io"
"os" "os"
"os/exec" "os/exec"
"path/filepath"
) )
func runTest(name string) error { func runTest(name string) error {
fmt.Println(name) 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) file, err := os.Open(name)
if err != nil { if err != nil {
return err return err
......
...@@ -45,7 +45,7 @@ var TestsToLatex = helpers.Subcommand{ ...@@ -45,7 +45,7 @@ var TestsToLatex = helpers.Subcommand{
buf.WriteString(` buf.WriteString(`
\begin{figure}[H] \begin{figure}[H]
\begin{center} \begin{center}
\resizebox*{!}{\textheight-2cm}{`) \resizebox{\textwidth}{\textheight-2cm}{`)
buf.Write(b) buf.Write(b)
buf.WriteString(` buf.WriteString(`
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment