@eclipse-che/che-e2e 7.62.0-dev-4f7da12 → 7.62.0-dev-af91f02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/initDevfileTests.sh +8 -4
- package/package.json +1 -1
package/initDevfileTests.sh
CHANGED
|
@@ -23,9 +23,13 @@ launchSingleUserstory(){
|
|
|
23
23
|
checkUserstoryName(){
|
|
24
24
|
local checkedName="$(ls tests/devfiles/${TS_SELENIUM_EDITOR} | grep ${USERSTORY}.spec.ts)";
|
|
25
25
|
|
|
26
|
-
if [ -z "$TS_SELENIUM_EDITOR" ]; then
|
|
26
|
+
if [ -z "$TS_SELENIUM_EDITOR" ] || [ ! -d "tests/devfiles/${TS_SELENIUM_EDITOR}" ]; then
|
|
27
27
|
echo ""
|
|
28
|
-
|
|
28
|
+
if [ -z "$TS_SELENIUM_EDITOR" ]; then
|
|
29
|
+
echo "Variable TS_SELENIUM_EDITOR is unset."
|
|
30
|
+
elif [ ! -d "tests/devfiles/${TS_SELENIUM_EDITOR}" ]; then
|
|
31
|
+
echo "Variable \"${TS_SELENIUM_EDITOR}\" is not a valid directory."
|
|
32
|
+
fi
|
|
29
33
|
echo ""
|
|
30
34
|
echo "Available values are:"
|
|
31
35
|
echo ""
|
|
@@ -39,9 +43,9 @@ checkUserstoryName(){
|
|
|
39
43
|
|
|
40
44
|
if [ -z "$checkedName" ]; then
|
|
41
45
|
echo ""
|
|
42
|
-
echo "Current value USERSTORY=\"${USERSTORY}\" doesn't match to any
|
|
46
|
+
echo "Current value USERSTORY=\"${USERSTORY}\" doesn't match to any of existing tests:"
|
|
43
47
|
echo ""
|
|
44
|
-
echo "$(ls tests/devfiles | sed -e 's/.spec.ts
|
|
48
|
+
echo "$(ls "tests/devfiles/${TS_SELENIUM_EDITOR}" | sed -e 's/.spec.ts//g')"
|
|
45
49
|
echo ""
|
|
46
50
|
echo "Please choose one of the tests above, or unset the \"USERSTORY\" variable for launching all of them."
|
|
47
51
|
echo ""
|