projects
/
platform
/
core
/
security
/
security-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b78ed4
)
Optimize the test time of path_check.sh
32/121432/2
author
jin-gyu.kim
<jin-gyu.kim@samsung.com>
Tue, 28 Mar 2017 04:29:14 +0000
(13:29 +0900)
committer
jin-gyu.kim
<jin-gyu.kim@samsung.com>
Tue, 28 Mar 2017 04:30:55 +0000
(13:30 +0900)
Change-Id: I423ae3050e07e0ee7a9d49b989591b2296512860
test/path_check_test/path_check.sh
patch
|
blob
|
history
diff --git
a/test/path_check_test/path_check.sh
b/test/path_check_test/path_check.sh
index d1c524c6d5c2b12edfe70501167371486da581ff..a695b41caac281006e39d3726d4d8872ab0aa308 100644
(file)
--- a/
test/path_check_test/path_check.sh
+++ b/
test/path_check_test/path_check.sh
@@
-11,14
+11,11
@@
script_list_path="/opt/share/security-config/log/script_file_list"
# args : $1 = file path
function CHECK_EXCEPTION
{
- while read exception_file_path
- do
- filtered_file_path=$(echo $1 | grep $exception_file_path)
- if [ -n "$filtered_file_path" ]
- then
- return 1
- fi
- done < <(cat $exception_file )
+ temp=$(cat $exception_file_path | grep $1)
+ if [ -n "$temp" ]
+ then
+ return 1
+ fi
return 0
}