]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunit: print the detail commands excuted in the scripts 50909/head
authorXiubo Li <xiubli@redhat.com>
Thu, 6 Apr 2023 02:17:44 +0000 (10:17 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 6 Apr 2023 02:38:14 +0000 (10:38 +0800)
This will make it to be much easier when debugging the qa tests failures.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
16 files changed:
qa/workunits/fs/full/subvolume_clone.sh
qa/workunits/fs/snaps/snaptest-parents.sh
qa/workunits/fs/snaps/untar_snap_rm.sh
qa/workunits/hadoop/wordcount.sh
qa/workunits/kernel_untar_build.sh
qa/workunits/suites/blogbench.sh
qa/workunits/suites/bonnie.sh
qa/workunits/suites/cephfs_journal_tool_smoke.sh
qa/workunits/suites/dbench-short.sh
qa/workunits/suites/dbench.sh
qa/workunits/suites/ffsb.sh
qa/workunits/suites/fsync-tester.sh
qa/workunits/suites/iogen.sh
qa/workunits/suites/iozone-sync.sh
qa/workunits/suites/pjd.sh
qa/workunits/true.sh

index a11131215b41969d51165605bd1a38072154f8e5..75648f306f8b61251d101bacbebbb9bb359d22d4 100755 (executable)
@@ -19,7 +19,6 @@ set -ex
 # Note that the failed clones would be in retry loop and it's state would be 'pending' or 'in-progress'.
 # It's state is not updated to 'failed' as the config update to gets ENOSPACE too.
 
-set -e
 ignore_failure() {
         if "$@"; then return 0; else return 0; fi
 }
index 7ab1ba7cf2d1749bab3c47a5f11f5cfa5969fae1..3d5373847b2344f7d39a36ba6657278eefbe5303 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-set -e
+set -ex
 
 echo "making directory tree and files"
 mkdir -p 1/a/b/c/
index 8a8412e665923d3bb12a9c42c5123e5f426efcff..a02db572a8fdb1c5382f465004f2b488b1fe9582 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-set -e
+set -ex
 
 do_tarball() {
     wget http://download.ceph.com/qa/$1
index 616b08af20a04226fc73a2d39198c7817ab63c9d..fb6b1252aa152208429a922e4d0adc1f368582f2 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
-set -x
+set -ex
 
 WC_INPUT=/wc_input
 WC_OUTPUT=/wc_output
index 9b60f065c8d87ba963d07afed3f2595c0df203d4..9ee55eac9924377e9d4992851b12ae7f7e1491ab 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 wget -O linux.tar.gz http://download.ceph.com/qa/linux-5.4.tar.gz
 
index a05d8d21ceaf2ca44185925328a7d6045b543faa..ac76349fd8be2931777f8f3ac87d987e235fe9eb 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -e
+set -ex
 
 echo "getting blogbench"
 wget http://download.ceph.com/qa/blogbench-1.0.tar.bz2
index b60cc6a5e8ec30f6220506be863b9c7b31ab6119..6c93f95640414a80b37a42a82387d77fa20eed04 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 bonnie_bin=`which bonnie++`
 [ $? -eq 1 ] && bonnie_bin=/usr/sbin/bonnie++
index 3fe01ed63f19e0bce8550d562c24ca5ffaae37cb..a24dac532d5a260ead29ba4dcc5aaa6159f1f69a 100755 (executable)
@@ -1,7 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
-set -x
+set -ex
 
 export BIN="${BIN:-cephfs-journal-tool --rank=cephfs:0}"
 export JOURNAL_FILE=/tmp/journal.bin
index b0da022757669299a69145ded437c15b5f449065..e76237914ada1289ba1fcde3305031c8819e1045 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 dbench 1
index 32c893b453f48e05ce8bf49ee4b67986cca89ae7..61c4f0018063f96898f57e7395eb46841c8fbcaf 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 dbench 1
 dbench 10
index bf95a05c4e8338cc8e9acdba48a6d88eb145cf3a..41bbb31333acef7f1891bf6e7124f498b023d00d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 mydir=`dirname $0`
 
index 6e32786ea95701c0d6e25fcbe58a381ac31ffccb..6f1fc4111c1ac458a0fbc69040f04ac1c44b446d 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/sh -x
+#!/bin/sh
 
-set -e
+set -ex
 
 # To skirt around GPL compatibility issues:
 wget http://download.ceph.com/qa/fsync-tester.c
index d92b8708355ada86dfe2e2d548e5a5ba33a4aefb..3583438f069b1dce6198adeb2cf508564d16ecd3 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -e
+set -ex
 
 echo "getting iogen"
 wget http://download.ceph.com/qa/iogen_3.1p0.tar
index a37962d308eeb03d3c15d0315e667f04e088e4eb..449de21a4dd1f6751eaa6e8e4d8f812245989111 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 # basic tests of O_SYNC, O_DSYNC, O_RSYNC
 # test O_SYNC
index bd72f77f2c978c69598abcfb997a3397d6960fe6..5c22b4af78cfc6d0c3b16c7fa2309673aa93688f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-set -e
+set -ex
 
 wget http://download.ceph.com/qa/pjd-fstest-20090130-RC-aclfixes.tgz
 tar zxvf pjd*.tgz
index 296ef781c6f09f38413add90414ab72bc7dba0a4..aa153ae4396629eaeabc3d7d666f7f7b5036d3f5 100755 (executable)
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/bin/sh -ex
 
 true