aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-06-14 20:42:19 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-06-14 20:43:59 -0400
commit4892063043282229c1296d86a2f86989ef30a97c (patch)
treeea3a1b6015d99ce77c0296ef6a6d77bd29316b30 /tools
parent0bd6c1a38f57127eeb9444ed74cf5b65f36f563c (diff)
ktest: Have the testing tmp dir include machine name
As multiple tests may be executed by the same server, have the test machine name add uniqueness to the value of the temp directory. Otherwise the temp directories may overwrite each other's tests. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/ktest/ktest.pl2
-rw-r--r--tools/testing/ktest/sample.conf4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index d0e1de6e4d1f..24286cea14af 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -27,7 +27,7 @@ $default{"TEST_TYPE"} = "test";
27$default{"BUILD_TYPE"} = "randconfig"; 27$default{"BUILD_TYPE"} = "randconfig";
28$default{"MAKE_CMD"} = "make"; 28$default{"MAKE_CMD"} = "make";
29$default{"TIMEOUT"} = 120; 29$default{"TIMEOUT"} = 120;
30$default{"TMP_DIR"} = "/tmp/ktest"; 30$default{"TMP_DIR"} = "/tmp/ktest/\${MACHINE}";
31$default{"SLEEP_TIME"} = 60; # sleep time between tests 31$default{"SLEEP_TIME"} = 60; # sleep time between tests
32$default{"BUILD_NOCLEAN"} = 0; 32$default{"BUILD_NOCLEAN"} = 0;
33$default{"REBOOT_ON_ERROR"} = 0; 33$default{"REBOOT_ON_ERROR"} = 0;
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index 1092e4759c1e..e2d8d8338e9a 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -392,8 +392,8 @@
392#ADD_CONFIG = /home/test/config-broken 392#ADD_CONFIG = /home/test/config-broken
393 393
394# The location on the host where to write temp files 394# The location on the host where to write temp files
395# (default /tmp/ktest) 395# (default /tmp/ktest/${MACHINE})
396#TMP_DIR = /tmp/ktest 396#TMP_DIR = /tmp/ktest/${MACHINE}
397 397
398# Optional log file to write the status (recommended) 398# Optional log file to write the status (recommended)
399# Note, this is a DEFAULT section only option. 399# Note, this is a DEFAULT section only option.