<commit_before>package utils

import (
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"

	. "github.com/onsi/gomega"
	"github.com/onsi/gomega/gexec"
)

func GetTempDir() (string, error) {
	return ioutil.TempDir("", "werf-integration-tests-")
}

func ProcessWerfBinPath() string {
	path := os.Getenv("WERF_TEST_WERF_BINARY_PATH")
	if path == "" {
		var err error
		path, err = gexec.Build("github.com/flant/werf/cmd/werf")
		Ω(err).ShouldNot(HaveOccurred())
	}

	return path
}

func BeforeEachOverrideWerfProjectName() {
	projectName := "werf-integration-test-" + GetRandomString(10)<commit_msg>[tests] Unique project name between parallel nodes<commit_after>package utils

import (
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"strconv"

	. "github.com/onsi/gomega"
	"github.com/onsi/gomega/gexec"
)

func GetTempDir() (string, error) {
	return ioutil.TempDir("", "werf-integration-tests-")
}

func ProcessWerfBinPath() string {
	path := os.Getenv("WERF_TEST_WERF_BINARY_PATH")
	if path == "" {
		var err error
		path, err = gexec.Build("github.com/flant/werf/cmd/werf")
		Ω(err).ShouldNot(HaveOccurred())
	}

	return path
}

func BeforeEachOverrideWerfProjectName() {
	projectName := "werf-integration-test-" + strconv.Itoa(os.Getpid()) + "-" + GetRandomString(10)
{'fraction_non_alphanumeric': 0.16292134831460675, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 4.720183486238532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3713134', 'n_tokens_mistral': 520, 'n_tokens_neox': 504, 'n_words': 81}