Skip to content

Commit

Permalink
PT-2156 - Fix tests for lib
Browse files Browse the repository at this point in the history
Evgeniy's review on July 20
  • Loading branch information
svetasmirnova committed Jul 20, 2023
1 parent c119293 commit 4f24018
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/pt-ioprofile
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-mext
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-mysql-summary
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-pmp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-sift
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-stalk
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion bin/pt-summary
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
continue
else
option_error "Unknown option: $real_opt"
Expand Down
2 changes: 1 addition & 1 deletion lib/bash/parse_options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ _parse_command_line() {
else
spec=$(grep "^short form:-$opt\$" "$PT_TMPDIR"/po/* | cut -d ':' -f 1)
if [ -z "$spec" ]; then
if [ 1 -eq $GLOBAL_CONFIG ]; then
if [ $GLOBAL_CONFIG -eq 1 ]; then
# Not all programs uses the same options and since these options can be stored
# in a common config file, we need to skip general options not used by a particular
# program
Expand Down

0 comments on commit 4f24018

Please sign in to comment.